Testing errors

If you wish to test error handling you can force any error code to be produced. Adding the 'error' parameter to any api query will force the system to produce the associated error.

For example: The following query returns a 400 error code:
http://api.keyworddiscovery.com/query.php?query=airport+parking&error=400

The system will produce the following:


<?xml version="1.0"?>
<errors>
<error errorCode="400" errorString="Empty Query" />
</errors>



< Error codes | PHP, Perl and C#.Net code examples >