Exception: Msf::Exploit::Remote::HTTP::Kubernetes::Error::UnexpectedStatusCode

Inherits:
ApiError
  • Object
show all
Defined in:
lib/msf/core/exploit/remote/http/kubernetes/error.rb

Instance Attribute Summary collapse

Attributes inherited from ApiError

#res

Instance Method Summary collapse

Constructor Details

#initialize(message: nil, res: nil) ⇒ UnexpectedStatusCode

Returns a new instance of UnexpectedStatusCode.



62
63
64
65
# File 'lib/msf/core/exploit/remote/http/kubernetes/error.rb', line 62

def initialize(message: nil, res: nil)
  @status_code = res.code
  super(message: message || "Kubernetes ApiError - unexpected response status code #{status_code}", res: res)
end

Instance Attribute Details

#status_codeObject (readonly)

Returns the value of attribute status_code.



61
62
63
# File 'lib/msf/core/exploit/remote/http/kubernetes/error.rb', line 61

def status_code
  @status_code
end