Exception: Modern::Errors::UnauthorizedError

Inherits:
WebError
  • Object
show all
Defined in:
lib/modern/errors/web_errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(msg = "Unauthorized") ⇒ UnauthorizedError

Returns a new instance of UnauthorizedError.



24
25
26
# File 'lib/modern/errors/web_errors.rb', line 24

def initialize(msg = "Unauthorized")
  super(msg)
end

Instance Method Details

#statusObject



28
29
30
# File 'lib/modern/errors/web_errors.rb', line 28

def status
  401
end