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.



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

#idObject



142
143
144
# File 'lib/rack/json_schema/response_validation.rb', line 142

def id
  "invalid_response_content_type"
end

#statusObject



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

def status
  500
end