Exception: Modern::Errors::ForbiddenError

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

Instance Method Summary collapse

Constructor Details

#initialize(msg = "Forbidden") ⇒ ForbiddenError

Returns a new instance of ForbiddenError.



34
35
36
# File 'lib/modern/errors/web_errors.rb', line 34

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

Instance Method Details

#statusObject



38
39
40
# File 'lib/modern/errors/web_errors.rb', line 38

def status
  403
end