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.



117
118
119
# File 'lib/rack/json_schema/response_validation.rb', line 117

def initialize
  super("Response Content-Type wasn't for JSON")
end

Instance Method Details

#idObject



121
122
123
# File 'lib/rack/json_schema/response_validation.rb', line 121

def id
  "invalid_response_content_type"
end

#statusObject



125
126
127
# File 'lib/rack/json_schema/response_validation.rb', line 125

def status
  500
end