http: don't write error to socket
The state of the connection is unknown at this point and writing to it can corrupt client state before it is aware of an error.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines