Class: Verikloak::BFF::UntrustedProxyError

Inherits:
Error
  • Object
show all
Defined in:
lib/verikloak/bff/errors.rb

Overview

Raised when a request did not pass through a trusted proxy peer.

Instance Attribute Summary

Attributes inherited from Error

#code, #http_status

Instance Method Summary collapse

Constructor Details

#initialize(msg = 'request did not pass through a trusted proxy') ⇒ void

Parameters:

  • msg (String) (defaults to: 'request did not pass through a trusted proxy')


32
33
34
# File 'lib/verikloak/bff/errors.rb', line 32

def initialize(msg = 'request did not pass through a trusted proxy')
  super(msg, code: 'untrusted_proxy', http_status: 401)
end