Class: Stitches::ValidMimeType::NotAcceptableResponse

Inherits:
Rack::Response
  • Object
show all
Defined in:
lib/stitches/valid_mime_type.rb

Instance Method Summary collapse

Constructor Details

#initialize(accept_header) ⇒ 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