Do not raise exception in the middle of an Lwt function, use Lwt.fail instead.
Now all CouchDB queries return a type reply, and do not return Lwt.fail on CouchDB error reply.