But for example it's turning HttpException 404 (thrown in line 118) into a 500 status code. Logging the error is fine, but the exception handling is wrong this way.