API Simulation
API Simulator to help you test your API parsing code at to test how it responds to various anomalies. All the options available to you are documented at API Simulation.
In short you can sleep your response for specified seconds to test timeout and slow response handling, you can force a specific error code response, specify the format of the response as well as the exact response text.