Handle HTTPExceptions differently in the error handler.