Sha256: 63495ff68face634138a948a42f5850df4d1813794df3836cedc95d29c805a3b

Contents?: true

Size: 319 Bytes

Versions: 17

Compression:

Stored size: 319 Bytes

Contents

# encoding: utf-8

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

17 entries across 17 versions & 1 rubygems

Version Path
hyperdrive-0.0.25 lib/hyperdrive/errors/not_acceptable.rb
hyperdrive-0.0.24 lib/hyperdrive/errors/not_acceptable.rb
hyperdrive-0.0.23 lib/hyperdrive/errors/not_acceptable.rb
hyperdrive-0.0.22 lib/hyperdrive/errors/not_acceptable.rb
hyperdrive-0.0.21 lib/hyperdrive/errors/not_acceptable.rb
hyperdrive-0.0.20 lib/hyperdrive/errors/not_acceptable.rb
hyperdrive-0.0.19 lib/hyperdrive/errors/not_acceptable.rb
hyperdrive-0.0.18 lib/hyperdrive/errors/not_acceptable.rb
hyperdrive-0.0.17 lib/hyperdrive/errors/not_acceptable.rb
hyperdrive-0.0.16 lib/hyperdrive/errors/not_acceptable.rb
hyperdrive-0.0.15 lib/hyperdrive/errors/not_acceptable.rb
hyperdrive-0.0.14 lib/hyperdrive/errors/not_acceptable.rb
hyperdrive-0.0.13 lib/hyperdrive/errors/not_acceptable.rb
hyperdrive-0.0.12 lib/hyperdrive/errors/not_acceptable.rb
hyperdrive-0.0.11 lib/hyperdrive/errors/not_acceptable.rb
hyperdrive-0.0.10 lib/hyperdrive/errors/not_acceptable.rb
hyperdrive-0.0.9 lib/hyperdrive/errors/not_acceptable.rb