...
The API supports XML, JSON, and PHP serialization formats. By default JSON formatting is used. So if there is an error detecting the format of the request (due to a bad URL, for example) the error response will be returned in JSON format.
Errors
There are seven several types of errors that may be encountered when working with the API:
...