http: return "Connection:" and "Content-Length:" headers on error