Error
API Error Responses
When an error occurs in the OxaPay API, the response will be structured in a standardized format. This allows users to easily identify and address issues with their requests. Below is an overview of the error response structure, the possible status codes, and the types of errors you may encounter.
Statuses
Status Code
Meaning
Common Causes
200 OK
The request was successful.
The request was processed without errors.
400 Bad Request
The request was invalid or malformed.
Missing required fields, invalid data format, or unacceptable parameter values.
401 Unauthorized
The user is not authenticated or has invalid credentials.
Missing or invalid API key, incorrect session or token.
404 Not Found
The requested resource could not be found.
The resource doesn't exist or the endpoint is incorrect.
500 Internal Server Error
An unexpected server-side error occurred.
Server failure, issues with third-party integrations or dependencies.
503 Service Unavailable
One of the services is temporarily unavailable.
Server overload, service downtime, or maintenance.
Last updated