Exception: Rack::Spec::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.
106 107 108 |
# File 'lib/rack/spec/response_validation.rb', line 106 def initialize super("Response Content-Type wasn't for JSON") end |
Instance Method Details
#id ⇒ Object
110 111 112 |
# File 'lib/rack/spec/response_validation.rb', line 110 def id "invalid_response_content_type" end |
#status ⇒ Object
114 115 116 |
# File 'lib/rack/spec/response_validation.rb', line 114 def status 500 end |