change error_code on malformed response headers

Signed-off-by: Jack <jack.wgm@gmail.com>