API Reference

API Status and Error Codes

Twilio Rest API uses the standard Http Status Code.

Status CodeRemarkDescription
200OKThis indicates a successful request.
201CreatedThis indicates a new resource was created.
404Not FoundThis indicates that the requested resource was not found.

Error Codes

This section contains a list of possible error messages you might come across when using the Twilio API.


Error CodeDescription
2127This indicates that the requested phone number is invalid.
21422This indicates that the requested phone number is unavailable
21421This indicates that the requested phone number is invalid.
21606This indicates that the requested phone number is not owned by your account or is not SMS-capable.
21611This indicates that the requested phone number SMS message queue is full.
533This indicates that the requested area code doesn't have any available phone numbers.