{
"error": {
"code": "AUTHENTICATION_GENERIC",
"message": "There was an error authenticating you."
}
}
{
"error": {
"code": "RESOURCE_NOT_FOUND",
"message": "The resource you requested was not found."
}
}
{
"error": {
"code": "USER_EMAIL_INVALID",
"message": "The email entered is invalid."
}
}
Usage
Errors
Thanx uses standard HTTP error codes to communicate the success / failure of a request.
{
"error": {
"code": "AUTHENTICATION_GENERIC",
"message": "There was an error authenticating you."
}
}
{
"error": {
"code": "RESOURCE_NOT_FOUND",
"message": "The resource you requested was not found."
}
}
{
"error": {
"code": "USER_EMAIL_INVALID",
"message": "The email entered is invalid."
}
}
An HTTP 400 Bad Request will always be accompanied by an object containing two
properties: code (see below) and message. The code will remain static though the
associated message may change at any time. Thanx can expand this list at any
time.