Errors
Twilio supported SDKs
The Twilio SendGrid Web REST API v3 provides SDKs for seven different languages.
The SendGrid Web API v3 returns an error when your request is malformed or the server fails to process it. This page describes the error status codes you can receive and the format of failed responses.
| Status Code | Description |
|---|---|
| 400 | Bad request |
| 401 | Requires authentication |
| 403 | Too many bad requests. Temporary block |
| 406 | Missing Accept header. For example: Accept: application/json |
| 429 | Too many requests/Rate limit exceeded |
| 500 | Internal server error |
A failed request returns an errors array in the response body. Each entry identifies the field that caused the error and a message describing it.
GET https://api.sendgrid.com/v3/resource HTTP/1.1
1HTTP/1.1 400 BAD REQUEST2Content-Type: application/json34{5"errors": [6{"field": "identifier1", "message": "error message explained"},7{"field": "identifier2", "message": "error message explained"},8{"field": "identifier3", "message": "error message explained"},9]10}