Search code examples
rtrellohttr

Is there a way to provoke server-side errors from client?


I'm sending GET requests to Trello API, and I need to test my error handling script. Can I send something that will reliably provoke server-side error?


Solution

  • If all you need to do is have a server generate HTTP error code replies, and you are fine with not using the real Trello API server (but can switch to another host), you could give HttpBin a try. It's a free, anonymous, hosted service that just replies with whatever status you ask it for.