http: return error response as soon as possible