Error Model
The API can return an HTTP status together with status_code, status, and error_desc.
{
"status_code": 400,
"status": "error",
"error_desc": "Invalid request"
}
Principles
- HTTP status is used to determine the protocol layer.
- Business
status_codeis used to determine the business error. error_descis used for troubleshooting (debugging) and should not be used as a machine-readable code.