add support for application level exceptions that send back status codes