Exception: Keycardai::OAuth::HTTPError
- Defined in:
- lib/keycardai/oauth/errors.rb
Overview
A non-2xx HTTP response. Carries the status code and response body.
Direct Known Subclasses
Instance Attribute Summary collapse
- #body ⇒ String readonly
- #status ⇒ Integer readonly
Instance Method Summary collapse
-
#initialize(message, status:, body: "") ⇒ HTTPError
constructor
A new instance of HTTPError.
Constructor Details
#initialize(message, status:, body: "") ⇒ HTTPError
Returns a new instance of HTTPError.
24 25 26 27 28 |
# File 'lib/keycardai/oauth/errors.rb', line 24 def initialize(, status:, body: "") super() @status = status @body = body end |
Instance Attribute Details
#body ⇒ String (readonly)
22 23 24 |
# File 'lib/keycardai/oauth/errors.rb', line 22 def body @body end |
#status ⇒ Integer (readonly)
20 21 22 |
# File 'lib/keycardai/oauth/errors.rb', line 20 def status @status end |