Sha256: 980cbcc6b58d538c98d013021c9ff07f67ee68d0a5940df141fb59102c490473

Contents?: true

Size: 301 Bytes

Versions: 1

Compression:

Stored size: 301 Bytes

Contents

module Hyperdrive
  module Errors
    class NotAcceptable < HTTPError
      def initialize(http_accept)
        @message = "This resource is not capable of generating content in the format requested by the Accept headers (#{http_accept})."
        @http_status_code = 406
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hyperdrive-0.0.8 lib/hyperdrive/errors/not_acceptable.rb