Exception: OpenReceive::Server::ForbiddenError
- Inherits:
-
StandardError
- Object
- StandardError
- OpenReceive::Server::ForbiddenError
- Defined in:
- lib/openreceive/server/errors.rb
Overview
403 — the host application did not authorize this request. FORBIDDEN, not UNAUTHORIZED: that name belongs to the NIP-47 wallet layer.
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 = "Forbidden.") ⇒ ForbiddenError
constructor
A new instance of ForbiddenError.
Constructor Details
#initialize(message = "Forbidden.") ⇒ ForbiddenError
Returns a new instance of ForbiddenError.
40 41 42 43 44 |
# File 'lib/openreceive/server/errors.rb', line 40 def initialize( = "Forbidden.") super() @status = 403 @code = "FORBIDDEN" end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
38 39 40 |
# File 'lib/openreceive/server/errors.rb', line 38 def code @code end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
38 39 40 |
# File 'lib/openreceive/server/errors.rb', line 38 def status @status end |