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.
138 139 140 |
# File 'lib/rack/json_schema/response_validation.rb', line 138 def initialize super("Response Content-Type wasn't for JSON") end |
Instance Method Details
#id ⇒ Object
142 143 144 |
# File 'lib/rack/json_schema/response_validation.rb', line 142 def id "invalid_response_content_type" end |
#status ⇒ Object
146 147 148 |
# File 'lib/rack/json_schema/response_validation.rb', line 146 def status 500 end |