Skip to Content

Error Handling

If a request fails, you will receive an error response with an appropriate HTTP status code and message.

HTTP Status Codes

Status CodeDescription
2xx Success
200 OKThe request was successful.
201 CreatedA new resource was successfully created.
4xx Client Errors
400 Bad RequestThe request was invalid or cannot be processed.
401 UnauthorizedAuthentication failed or not provided.
403 ForbiddenAccess to the requested resource is denied.
404 Not FoundThe requested resource was not found.
5xx Server Errors
500 Internal Server ErrorAn error occurred on the server.
502 Bad GatewayInvalid response from the upstream server.
503 Service UnavailableThe server is temporarily overloaded or under maintenance.

Error Response Examples

Invalid Phone Number

{ "error": "Invalid phone number format" }

Invalid Transaction ID

{ "error": "Invalid Transaction ID." }

Authentication Failed

{ "error": "Authentication failed, check your API key." }

Server Error

{ "error": "A server-side issue occurred. Please retry your request." }
Last updated on