throwing caught exception in http script