TwilioErrorResponse
Defined in: lib/exception/twilio-exception.filter.ts:23
JSON-serializable shape emitted by TwilioExceptionFilter whenever
it maps a Twilio SDK RestException to an HTTP response.
Example
Section titled “Example”const body: TwilioErrorResponse = { statusCode: 429, message: 'Too Many Requests', code: '20429', moreInfo: 'https://www.twilio.com/docs/errors/20429',};Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
code |
string |
Twilio-specific error code (e.g. "20429"), stringified for transport. |
lib/exception/twilio-exception.filter.ts:29 |
details? |
unknown |
Additional structured error context returned by Twilio, when provided. | lib/exception/twilio-exception.filter.ts:33 |
message |
string |
Human readable error message returned by Twilio. | lib/exception/twilio-exception.filter.ts:27 |
moreInfo? |
string |
Link to the Twilio error reference documentation, when provided. | lib/exception/twilio-exception.filter.ts:31 |
statusCode |
number |
HTTP status code copied from the Twilio REST API response. | lib/exception/twilio-exception.filter.ts:25 |