Handle TMPFAIL error from db server by returning HTTP 503 status

The Couchbase Lite replicator will interpret this as a transient error
and will retry the request later.
Fixes #311