We set the status code on the response and throw an exception. When the StatusFilter intercepts this response, it overrides the status code with 500 while keeping our original exception in place.
So the client sees our exception, but without the corresponding status code. ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2730209