Skip to main content

HTTPError

__type(err: Error,stackTraces: CallSite[]): any

Properties

(Mandatory properties are in bold)
PropertiesTypeDescription
captureStackTracecaptureStackTrace(targetObject: object,constructorOpt: Function): voidCreate .stack property on a target object
codestring | number
constructornew HTTPError(code: string | number,message: string,payload: AnonymousObject<any>)
messagestring
namestring
ofof(error: unknown): BasicError
payloadAnonymousObject<any>
stackTraceLimitnumber
Additional properties for advanced use cases
PropertiesTypeDescription
causeunknown
prepareStackTrace
stackstring