code: public HttpResponseHandler<SdkBaseException> createErrorResponseHandler(
              JsonErrorResponseMetadata errorResponsMetadata) {
          return new ApiGatewayErrorResponseHandler(
                  createErrorUnmarshallers(errorResponsMetadata.getErrorShapes().stream()),
                  SdkStructuredPlainJsonFactory.JSON_FACTORY);
      }
docs: Creates a response handler for handling a error response (non 2xx response).