Sha256: 1498dd539d9aebe3b625cc8d2492772b632ca4ff0d8db29f31299adcf97fa705

Contents?: true

Size: 268 Bytes

Versions: 10

Compression:

Stored size: 268 Bytes

Contents

# encoding: utf-8
module Grape
  module Exceptions
    class InvalidAcceptHeader < Base
      def initialize(message, headers)
        super(message: compose_message(:invalid_accept_header, message: message), status: 406, headers: headers)
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
grape-1.0.1 lib/grape/exceptions/invalid_accept_header.rb
grape-1.0.0 lib/grape/exceptions/invalid_accept_header.rb
grape-0.19.2 lib/grape/exceptions/invalid_accept_header.rb
grape-0.19.1 lib/grape/exceptions/invalid_accept_header.rb
grape-0.19.0 lib/grape/exceptions/invalid_accept_header.rb
grape-0.18.0 lib/grape/exceptions/invalid_accept_header.rb
grape-0.17.0 lib/grape/exceptions/invalid_accept_header.rb
grape-0.16.2 lib/grape/exceptions/invalid_accept_header.rb
grape-0.16.1 lib/grape/exceptions/invalid_accept_header.rb
grape-0.15.0 lib/grape/exceptions/invalid_accept_header.rb