code: public HttpResponseHandler<AmazonServiceException> createErrorResponseHandler(
              JsonErrorResponseMetadata errorResponsMetadata) {
          return getSdkFactory().createErrorResponseHandler(errorUnmarshallers, errorResponsMetadata
                  .getCustomErrorCodeFieldName());
      }
docs: Creates a response handler for handling a error response (non 2xx response).