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:
1
{
2
"status":"success",
3
"message":"Account created successful.",
4
"data":{...}
5
}
Copied!
It is however important to note that a 200 OK response can also look like this
1
{
2
"status": "error",
3
"message": "user client not found.",
4
}
Copied!
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:
1
{
2
"status": "warning",
3
"message": "An error occured please contact our support team"
4
}
Copied!
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.