Exception: Rack::JsonSchema::ResponseValidation::InvalidResponseContentType
Instance Method Summary collapse
- #id ⇒ Object
-
#initialize ⇒ InvalidResponseContentType
constructor
A new instance of InvalidResponseContentType.
- #status ⇒ Object
Methods inherited from Error
Constructor Details
#initialize ⇒ InvalidResponseContentType
Returns a new instance of InvalidResponseContentType.
143 144 145 |
# File 'lib/rack/json_schema/response_validation.rb', line 143 def initialize super("Response Content-Type wasn't for JSON") end |
Instance Method Details
#id ⇒ Object
147 148 149 |
# File 'lib/rack/json_schema/response_validation.rb', line 147 def id "invalid_response_content_type" end |
#status ⇒ Object
151 152 153 |
# File 'lib/rack/json_schema/response_validation.rb', line 151 def status 500 end |