Adapt to the Cohttp 0.10.x API which signals Eof/Error explicitly

See avsm/ocaml-cohttp#94 for the rationale behind the change.