These are a full list of error codes returned by the Pay1st APIs
List of API error codes
- 400 - Bad Request. Check the payload or params.
- 401 - Unauthorized. Check the auth credentials.
- 403 - Forbidden. The credentials provided do not have access to the resources requested.
- 404 - Not Found. The requested resource does not exist.
- 405 - Method Not Allowed. Check the request type and check the Content-Type.
Error Format
All error messages typically consist of an errorMessage
field and an errorCode
field.
Response Field | Description |
---|---|
errorMessage | A message detailing the error that occurred |
errorCode | A code to identify the error source |
All error responses return a 4xx error HTTP status.
{
"errorMessage": "ERROR_MESSAGE",
"errorCode": "ERROR_CODE"
}