Exception definitions.
HTTP 400 - Bad request: you sent some malformed data.
The base exception class for all exceptions this library raises.
HTTP 409 - Conflict
Could not find Service or Region in Service Catalog.
HTTP 403 - Forbidden: your credentials don’t give you access to this resource.
HTTP 501 - Not Implemented: the server does not support this operation.
This form of authentication does not support looking up endpoints from an existing token.
HTTP 404 - Not found
HTTP 413 - Over limit: you’re over the API limits for this time period.
HTTP 401 - Unauthorized: bad credentials.
Return an instance of an ClientException or subclass based on an httplib2 response.
Usage:
resp, body = http.request(...)
if resp.status != 200:
raise exception_from_response(resp, body)