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 HTTP Status Code Index "metadata": { // additional data }}