If there is an error with a request the api will return a response indicating the error code and a text version of the issue. This will allow you the developers to make sure that your applications can handle when errors occur. By understanding the format and various responses your application can deal with the error in whatever way is appropriate.
<api status="failed">
<error code="2">Invalid service -This service does not exist</error>
</api>
This is a complete list of error codes that could be potentially returned to you. We encourage you to cater for all of them in one way or another. Each method page will contain a list of errors that that particular function could potentially return.
Errors
- 2 : Invalid service -This service does not exist
- 3 : Invalid Method - No method with that name in this package
- 4 : Authentication Failed - You do not have permissions to access the service
- 5 : Invalid format - This service doesn't exist in that format
- 6 : Invalid parameters - Your request is missing a required parameter
- 7 : Invalid resource specified
- 8 : Invalid authentication token supplied
- 9 : Invalid session key - Please re-authenticate
- 10 : Invalid API key - You must be granted a valid key by listflock.com
- 11 : Service Offline - This service is temporarily offline. Try again later.
- 13 : Invalid method signature supplied
- 14 : This token has not been authorized
- 15 : This token has expired
- 16 : Invalid access rights to the data