[http] HttpConnection: fixes handling HTTP request syntax errors.