Exception: OpenReceive::Server::ForbiddenError

Inherits:
StandardError
  • Object
show all
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

Instance Method Summary collapse

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(message = "Forbidden.")
  super(message)
  @status = 403
  @code = "FORBIDDEN"
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



38
39
40
# File 'lib/openreceive/server/errors.rb', line 38

def code
  @code
end

#statusObject (readonly)

Returns the value of attribute status.



38
39
40
# File 'lib/openreceive/server/errors.rb', line 38

def status
  @status
end