All error responses contain at least the top level error object with httpCode and message
GET api?city=themoon&client_id=5cd27f66bac85fb6a1a1ee9e1b7f311d53811c74&format=json
HTTP/1.1 400 Bad Request
{
"error":
{
"httpCode":400,
"message":"Unable to find city"
}
}
GET api?city=themoon&client_id=5cd27f66bac85fb6a1a1ee9e1b7f311d53811c74&format=xml
HTTP/1.1 400 Bad Request
<?xml version="1.0"?>
<response>
<error>
<httpCode>
400
</httpCode>
<message>
Unable to find city
</message>
</error>
</response>