lightcouch / LightCouch

CouchDB Java API
www.lightcouch.org
Apache License 2.0
67 stars 70 forks source link

Get status code from LightCouch #39

Closed drmencicg closed 9 years ago

drmencicg commented 9 years ago

Hi! How can I get status code from LightCouch in Android and use status code to send a message to user about action he wants (if it is OK or not, if it is created or not and so on)?

ahmedyha commented 9 years ago

The API throws specific exceptions to denote failure responses, for example org.lightcouch.NoDocumentException corresponds to 404 error code.