Sha256: 3b9c5a9e6602a6f94a3bb662413ad37d8c50b715d3624581a5e67b932015f5fe

Contents?: true

Size: 391 Bytes

Versions: 4

Compression:

Stored size: 391 Bytes

Contents

module Hyperdrive
  module Errors
    class NotImplemented < HTTPError
      def initialize(request_method)
        @request_method = request_method
      end

      def message
        "The server either does not recognise the request method (#{@request_method}), or it lacks the ability to fulfill the request."
      end

      def http_status_code
        501
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
hyperdrive-0.0.7 lib/hyperdrive/errors/not_implemented.rb
hyperdrive-0.0.6 lib/hyperdrive/errors/not_implemented.rb
hyperdrive-0.0.5 lib/hyperdrive/errors/not_implemented.rb
hyperdrive-0.0.4 lib/hyperdrive/errors/not_implemented.rb