Exception: Modern::Errors::NotAcceptableError

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

Instance Method Summary collapse

Constructor Details

#initialize(msg = "Not acceptable (no servable content types in Accept header)") ⇒ NotAcceptableError

Returns a new instance of NotAcceptableError.



54
55
56
# File 'lib/modern/errors/web_errors.rb', line 54

def initialize(msg = "Not acceptable (no servable content types in Accept header)")
  super(msg)
end

Instance Method Details

#statusObject



58
59
60
# File 'lib/modern/errors/web_errors.rb', line 58

def status
  406
end