http_recv: Improve error diagnostics.