Class: Stitches::ValidMimeType::NotAcceptableResponse
- Inherits:
-
Rack::Response
- Object
- Rack::Response
- Stitches::ValidMimeType::NotAcceptableResponse
- Defined in:
- lib/stitches/valid_mime_type.rb
Instance Method Summary collapse
-
#initialize(accept_header) ⇒ NotAcceptableResponse
constructor
A new instance of NotAcceptableResponse.
Constructor Details
#initialize(accept_header) ⇒ NotAcceptableResponse
Returns a new instance of NotAcceptableResponse.
26 27 28 |
# File 'lib/stitches/valid_mime_type.rb', line 26 def initialize(accept_header) super("Not Acceptable - '#{accept_header}' didn't have the right mime type or version number. We only accept application/json with a version", 406) end |