Exception: Excon::Errors::HTTPStatusError
- Defined in:
- lib/excon/errors.rb
Direct Known Subclasses
Accepted, BadGateway, BadRequest, Conflict, Continue, Created, ExpectationFailed, Forbidden, Found, GatewayTimeout, Gone, InternalServerError, LengthRequired, MethodNotAllowed, MovedPermanently, MultipleChoices, NoContent, NonAuthoritativeInformation, NotAcceptable, NotFound, NotImplemented, NotModified, OK, PartialContent, PaymentRequired, PreconditionFailed, ProxyAuthenticationRequired, RequestEntityTooLarge, RequestTimeout, RequestURITooLong, RequestedRangeNotSatisfiable, ResetContent, SeeOther, ServiceUnavailable, SwitchingProtocols, TemporaryRedirect, Unauthorized, UnprocessableEntity, UnsupportedMediaType, UseProxy
Instance Attribute Summary collapse
-
#request ⇒ Object
readonly
Returns the value of attribute request.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(msg, request = nil, response = nil) ⇒ HTTPStatusError
constructor
A new instance of HTTPStatusError.
Constructor Details
#initialize(msg, request = nil, response = nil) ⇒ HTTPStatusError
Returns a new instance of HTTPStatusError.
30 31 32 33 34 |
# File 'lib/excon/errors.rb', line 30 def initialize(msg, request = nil, response = nil) super(msg) @request = request @response = response end |
Instance Attribute Details
#request ⇒ Object (readonly)
Returns the value of attribute request.
28 29 30 |
# File 'lib/excon/errors.rb', line 28 def request @request end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
28 29 30 |
# File 'lib/excon/errors.rb', line 28 def response @response end |