Fix memory leak on bad request
Output 400 error on bad request for http/1.1