HttpErrorCode
Defined in: packages/agent/src/errors.ts:684
Extends
Section titled “Extends”ErrorCode
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new HttpErrorCode(
status
,statusText
,headers
,bodyText?
):HttpErrorCode
Defined in: packages/agent/src/errors.ts:687
Parameters
Section titled “Parameters”status
Section titled “status”number
statusText
Section titled “statusText”string
headers
Section titled “headers”bodyText?
Section titled “bodyText?”string
Returns
Section titled “Returns”HttpErrorCode
Overrides
Section titled “Overrides”ErrorCode.constructor
Properties
Section titled “Properties”bodyText?
Section titled “bodyText?”
readonly
optional
bodyText:string
Defined in: packages/agent/src/errors.ts:691
callContext?
Section titled “callContext?”
optional
callContext:CallContext
Defined in: packages/agent/src/errors.ts:35
Inherited from
Section titled “Inherited from”ErrorCode.callContext
headers
Section titled “headers”
readonly
headers:HttpHeaderField
[]
Defined in: packages/agent/src/errors.ts:690
isCertified
Section titled “isCertified”
readonly
isCertified:boolean
=false
Defined in: packages/agent/src/errors.ts:37
Inherited from
Section titled “Inherited from”ErrorCode.isCertified
name:
string
='HttpErrorCode'
Defined in: packages/agent/src/errors.ts:685
requestContext?
Section titled “requestContext?”
optional
requestContext:RequestContext
Defined in: packages/agent/src/errors.ts:34
Inherited from
Section titled “Inherited from”ErrorCode.requestContext
status
Section titled “status”
readonly
status:number
Defined in: packages/agent/src/errors.ts:688
statusText
Section titled “statusText”
readonly
statusText:string
Defined in: packages/agent/src/errors.ts:689
Methods
Section titled “Methods”toErrorMessage()
Section titled “toErrorMessage()”toErrorMessage():
string
Defined in: packages/agent/src/errors.ts:697
Returns
Section titled “Returns”string
Overrides
Section titled “Overrides”ErrorCode.toErrorMessage
toString()
Section titled “toString()”toString():
string
Defined in: packages/agent/src/errors.ts:41
Returns
Section titled “Returns”string
Inherited from
Section titled “Inherited from”ErrorCode.toString