Exception: Puppet::Network::HTTP::Error::HTTPNotAuthorizedError

Inherits:
HTTPError
  • Object
show all
Defined in:
lib/puppet/network/http/error.rb

Constant Summary collapse

CODE =
403

Instance Attribute Summary

Attributes inherited from HTTPError

#issue_kind, #status

Instance Method Summary collapse

Methods inherited from HTTPError

#to_json

Constructor Details

#initialize(message, issue_kind = Issues::RUNTIME_ERROR) ⇒ HTTPNotAuthorizedError

Returns a new instance of HTTPNotAuthorizedError.



38
39
40
# File 'lib/puppet/network/http/error.rb', line 38

def initialize(message, issue_kind = Issues::RUNTIME_ERROR)
  super(_("Not Authorized: %{message}") % { message: message }, CODE, issue_kind)
end