Constructor for the APIError class
The HTTP status code
The type of error
The error message
Optional
correlationId: stringThe correlation ID
Optional
errorLink: stringURL to documentation about this error
Optional
cause: ErrorThe cause of the error
Optional
causeOptional
correlationOptional
errorOptional
stackStatic
Optional
prepareOptional override for formatting stack traces
Static
stackConvert the error to a JSON object, excluding undefined properties
The error as a JSON object
Static
captureCreate .stack property on a target object
Optional
constructorOpt: Function
Extended API error that encompasses both OpenAPI errors and other API-related errors