Errors
EukaPay API uses conventional HTTP response codes to indicate the success or failure of an API request.
2xx status codes indicate success.
4xx status codes indicate an error that failed due to the information provided (for example a required parameter was omitted, etc.).
5xx status codes indicate an error with EukaPay's APIs.
Error Attributes
statusCode - number
Provides the associated HTTP status code
message - string or object
Provides a description of the error.
type - string
specifies error type - api_error, idempotency_error, or invalid_request_error.
HTTP status codes | Description |
---|---|
200 - OK | Everything worked as expected. |
400 - Bad Request | Unacceptable request, most likely due to missing a required parameter. |
401 - Unauthorized | Invalid API key provided. |
402 - Request Failed | The parameters were valid but the request failed. |
403 - Forbidden | The API key doesn't have permissions to perform the request. |
404 - Not Found | The requested resource doesn't exist. |
409 - Conflict | The request conflicts with another request |
429 - Too Many Requests | Too many requests hit the API too quickly. We recommend an exponential backoff of your requests. |
500, 502, 503, 504 - Server Errors | Internal server errors. You can contact us if you experience this type of errors |
Updated about 2 months ago