API errors
An overview of all the API errors you might encounter on the client and server side.
Overview
The Okra API uses standard HTTP response codes for success and failure notifications. In general:
- 2xx codes indicate success,
- 4xx codes indicate developer or user-related failures,
- 5xx codes indicate Okra-related issues.
Breakdown of an Okra error
API errors
The 503
timeout error is returned by these endpoints:
/bvn-verify
/customer-verify
/nuban-verify
/nuban-name-verify
Some identity verification processes that time out eventually finish successfully. We strongly recommend that you implement an automatic retry for your requests to these endpoints. Add a short delay to your automatic retries to ensure that you handle 503 timeout errors successfully.
503
error response
{
"status": "error",
"message": "Our data source has returned a timeout response. Please retry the request. "
}
Was this page helpful?