I am working on a web services application. I have a requirement to throw HTTP 500 error through my application for some test purposes. I use HTTPConnector class of apache to connect to various web services and I need to throw HTTP 500 to test something.
Share
Sorry, your questions is not precise enough (e.g. programming language missing). In case you use Java I’d implement this as a Servlet filter.
In the filter you can then call response.sendError(int).