http: fix client parse error handling