http: fix error response