Error Codes & Statuses
PingoLine returns conventional HTTP response status codes.
| Code | Status | Meaning |
|---|---|---|
200 | OK | Request succeeded |
201 | Created | Resource created (e.g. order call queued) |
202 | Accepted | Asynchronous action started (e.g. call originating) |
401 | Unauthorized | Missing, invalid, or expired API token |
403 | Forbidden | Insufficient scope or feature add-on missing |
404 | Not Found | Resource not found |
422 | Unprocessable Entity | Validation failed on request parameters |
429 | Too Many Requests | Rate limit or daily quota exceeded |
500 | Server Error | Internal error |
Error Body Structure
When a request encounters an error, the response JSON includes an error object:
json
{
"error": {
"code": "invalid_request",
"message": "The phone field is required."
}
}