Exception: OpenReceive::Server::NotImplementedHttpError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/openreceive/server/errors.rb

Overview

501 — the host has not configured the capability this route needs (for example GET /rates without a price provider).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = "Not implemented.") ⇒ NotImplementedHttpError

Returns a new instance of NotImplementedHttpError.



158
159
160
161
162
# File 'lib/openreceive/server/errors.rb', line 158

def initialize(message = "Not implemented.")
  super(message)
  @status = 501
  @code = "NOT_IMPLEMENTED"
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



156
157
158
# File 'lib/openreceive/server/errors.rb', line 156

def code
  @code
end

#statusObject (readonly)

Returns the value of attribute status.



156
157
158
# File 'lib/openreceive/server/errors.rb', line 156

def status
  @status
end