Exception: Hyperdrive::Errors::Unauthorized

Inherits:
HTTPError
  • Object
show all
Defined in:
lib/hyperdrive/errors/unauthorized.rb

Instance Attribute Summary

Attributes inherited from HTTPError

#http_status_code, #message

Instance Method Summary collapse

Constructor Details

#initializeUnauthorized

Returns a new instance of Unauthorized.



4
5
6
7
# File 'lib/hyperdrive/errors/unauthorized.rb', line 4

def initialize
  @message = 'The request requires user authentication.'
  @http_status_code = 401
end