Exception: OpenReceive::Server::NotImplementedHttpError
- Inherits:
-
StandardError
- Object
- StandardError
- OpenReceive::Server::NotImplementedHttpError
- 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
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(message = "Not implemented.") ⇒ NotImplementedHttpError
constructor
A new instance of NotImplementedHttpError.
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( = "Not implemented.") super() @status = 501 @code = "NOT_IMPLEMENTED" end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
156 157 158 |
# File 'lib/openreceive/server/errors.rb', line 156 def code @code end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
156 157 158 |
# File 'lib/openreceive/server/errors.rb', line 156 def status @status end |