HTTP error codes are three-digit values used to communicate that a problem occurred during an online interaction. Typically found in the 400-599 range, these codes often accompany messages providing details on the issue. They help diagnose and resolve issues affecting data transfers between clients and servers.
Notice
We strongly recommend Operator use the correct HTTP Response Status Code when errors are showing in their system.
Parameters
Parameter name | Data type | Description |
---|---|---|
data | JSON Object | Response for API methods |
error | JSON Object | Error message when an error or exception occur |
Schema
{
"data": null,
"error": {
"message": "[Error message]"
}
}
Error Codes Reference
Example HTTP Status Codes are given below in the table below👇.
Code | Meaning |
---|---|
400 | Bad request |
403 | Forbidden |
404 | Not Found |
408 | Request Timeout |
500 | Internal server error |
... | ... |
For more information regarding HTTP status codes please refer at MDN Web Docs 🔗