Class: Aws::S3::Plugins::Http200Errors::Handler Private
- Inherits:
-
Seahorse::Client::Handler
- Object
- Seahorse::Client::Handler
- Aws::S3::Plugins::Http200Errors::Handler
- Defined in:
- lib/aws-sdk-s3/plugins/http_200_errors.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #call(context) ⇒ Object private
Instance Method Details
#call(context) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/aws-sdk-s3/plugins/http_200_errors.rb', line 16 def call(context) @handler.call(context).on(200) do |response| return response if streaming_output?(context.operation.output) error = check_for_error(context) return response unless error context.http_response.status_code = 500 response.data = nil response.error = error end end |