Exception: OpenReceive::Server::MethodNotAllowedError
- Inherits:
-
StandardError
- Object
- StandardError
- OpenReceive::Server::MethodNotAllowedError
- Defined in:
- lib/openreceive/server/errors.rb
Overview
405 — a known OpenReceive path called with the wrong HTTP method. Mirrors the JS router exactly: INVALID_REQUEST, no Allow header.
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 = "This OpenReceive route does not support that HTTP method.") ⇒ MethodNotAllowedError
constructor
A new instance of MethodNotAllowedError.
Constructor Details
#initialize(message = "This OpenReceive route does not support that HTTP method.") ⇒ MethodNotAllowedError
Returns a new instance of MethodNotAllowedError.
73 74 75 76 77 |
# File 'lib/openreceive/server/errors.rb', line 73 def initialize( = "This OpenReceive route does not support that HTTP method.") super() @status = 405 @code = "INVALID_REQUEST" end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
71 72 73 |
# File 'lib/openreceive/server/errors.rb', line 71 def code @code end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
71 72 73 |
# File 'lib/openreceive/server/errors.rb', line 71 def status @status end |