Sha256: 6422186ca6194be4b9108d042e9e8ee5ebbf9784c79558c60ca668700380a0c1

Contents?: true

Size: 302 Bytes

Versions: 18

Compression:

Stored size: 302 Bytes

Contents

module Hyperdrive
  module Errors
    class MethodNotAllowed < HTTPError
      def initialize(request_method)
        @request_method = request_method
        @message = "#{request_method.upcase} requests are not supported by this resource."
        @http_status_code = 405
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

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