Exception: Rack::JsonSchema::ResponseValidation::InvalidResponseContentType

Inherits:
Error
  • Object
show all
Defined in:
lib/rack/json_schema/response_validation.rb

Instance Method Summary collapse

Methods inherited from Error

#to_rack_response

Constructor Details

#initializeInvalidResponseContentType

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

#idObject



147
148
149
# File 'lib/rack/json_schema/response_validation.rb', line 147

def id
  "invalid_response_content_type"
end

#statusObject



151
152
153
# File 'lib/rack/json_schema/response_validation.rb', line 151

def status
  500
end