Fix error indicators.
Partial implementation of HttpConnection on top of TcpConnection.