When you recive an error you will have a json payload like:
{ "status": "OK", // Status code message "message": "string message", // A Message to tell you what you did Wrong. "error_code": "404", // Status code based on https://restfulapi.net/http-status-codes "metadata": { // additional data }}
HTTPS Status Code Index