Skip to main content

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_code is used to determine the business error.
  • error_desc is used for troubleshooting (debugging) and should not be used as a machine-readable code.