Exception: Modern::Errors::NotAcceptableError
- Defined in:
- lib/modern/errors/web_errors.rb
Instance Method Summary collapse
-
#initialize(msg = "Not acceptable (no servable content types in Accept header)") ⇒ NotAcceptableError
constructor
A new instance of NotAcceptableError.
- #status ⇒ Object
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
#status ⇒ Object
58 59 60 |
# File 'lib/modern/errors/web_errors.rb', line 58 def status 406 end |