API Errors
When API responds with errors it will respond with appropriate HTTP status code, like for example: 401
, 404
, 500
, 403
.
The response will have the following format:
[
{
"errorType": "SERVER_ERROR",
"message": "There was an internal server error."
}
]
message
is human-readable error description. It can contain dynamically generated information and is subject to change, so it shouldn't be matched in error-handling logic - errorType
should be used instead. List all available error types along with the descriptions and corresponding HTTP status code can be found here: https://api.bitclear.li/v3/errors