remote-curl: reencode http error messages