handle couchdb http status codes