Exception: Rack::Spec::RequestValidation::InvalidContentType
Overview
Error class for invalid request content type
Instance Method Summary collapse
- #id ⇒ Object
-
#initialize ⇒ InvalidContentType
constructor
A new instance of InvalidContentType.
- #status ⇒ Object
Methods inherited from Error
Constructor Details
#initialize ⇒ InvalidContentType
Returns a new instance of InvalidContentType.
144 145 146 |
# File 'lib/rack/spec/request_validation.rb', line 144 def initialize super("Invalid content type") end |
Instance Method Details
#id ⇒ Object
152 153 154 |
# File 'lib/rack/spec/request_validation.rb', line 152 def id "invalid_content_type" end |
#status ⇒ Object
148 149 150 |
# File 'lib/rack/spec/request_validation.rb', line 148 def status 400 end |