Status Codes
Status codes are part of a response that can be received while interacting with the Deposits API. There are two main status codes that can be gotten while interacting with our APIs:
  • 200 OK
  • 400 Bad Request

200 - OK

A 200 response looks like this:
"status": "success",
"message": "Account created successful.",
"data": {...}
It is however important to note that a 200 OK response can also look like this
"status": "error",
"message": "user client not found.",
This requires you to check the credentials you put in and make sure they are correct.

400 - Bad Request

A 400 bad request means the request was not successful and was possibly a fault from our end. A 400 bad request response can be similar to this:
"status": "warning",
"message": "An error occured please contact our support team"
A response body contains three parts:
  • Status - could be ‘success’, ‘warning’, or ‘error’ depending on what request was made and the state of the request.
  • Message - this provides more information or context as to what the request has found or achieved.
  • Data - could be null, object or array.
Copy link
On this page