Exception: HookSniff::UnauthorizedError
- Defined in:
- lib/hooksniff/errors.rb
Overview
401 Unauthorized
Instance Attribute Summary
Attributes inherited from ApiError
#code, #response_body, #response_headers
Instance Method Summary collapse
-
#initialize(response_headers: {}, response_body: nil) ⇒ UnauthorizedError
constructor
A new instance of UnauthorizedError.
Methods inherited from ApiError
Constructor Details
#initialize(response_headers: {}, response_body: nil) ⇒ UnauthorizedError
Returns a new instance of UnauthorizedError.
25 26 27 |
# File 'lib/hooksniff/errors.rb', line 25 def initialize(response_headers: {}, response_body: nil) super(code: 401, response_headers: response_headers, response_body: response_body) end |