Extends
Error
Constructors
Constructor
Parameters
| Parameter | Type | Description |
|---|---|---|
statusCode | number | The HTTP status code |
errorType | APIErrorType | The type of error |
errorMessage | string | The error message |
correlationId? | string | The correlation ID |
errorLink? | string | URL to documentation about this error |
cause? | Error | The cause of the error |
Returns
APIError
Overrides
Methods
toJSON()
Returns
| Name | Type |
|---|---|
errorLink? | string |
correlationId? | string |
name | string |
statusCode | number |
errorType | APIErrorType |
errorMessage | string |
Properties
| Property | Type |
|---|---|
statusCode | number |
errorType | APIErrorType |
errorMessage | string |
correlationId? | string |
errorLink? | string |