Exceptions
Everything that can go wrong…
Couch gives quite a bit of feedback through numeric HTTP error codes. These exceptions
give less-unweildy names to some of the more common ones:
HTTPError
- Base class for all exceptions with HTTP status codes >= 400.
NotFound
- Raised when a 404 error occurs.
Conflict
- Raised when a 409 error occurs.
PreconditionFailed
- Raised when a 412 error occurs.
ServerError
- Raised when an HTTP status code >=500 occurs.