};eNdZeZgdZGddeZGddeZGddeZGdd eZGd d eZ Gd d eZ Gdde Z Gdde Z Gdde Z Gdde ZGdde ZGdde ZGdde ZGdde ZdZy) zlazr.restfulclient errors.) BadRequestConflict ClientErrorCredentialsErrorCredentialsFileError HTTPErrorMethodNotAllowedNotFoundPreconditionFailed RestfulError ResponseError ServerError UnauthorizedUnexpectedResponseErrorceZdZdZy)r z2Base error for the lazr.restfulclient API library.N__name__ __module__ __qualname____doc__;/usr/lib/python3/dist-packages/lazr/restfulclient/errors.pyr r (srrceZdZdZy)r z1An exception representing a nonexistent resource.Nrrrrr r [s;rr ceZdZdZy)rzAn exception raised when you use an unsupported HTTP method. This is most likely because you tried to delete a resource that can't be deleted. Nrrrrrr_srrceZdZdZy)rz:An exception representing a problem with a client request.NrrrrrrgsDrrceZdZdZy)rz9An exception representing a conflict with another client.NrrrrrrksCrrceZdZdZy)r zAn exception representing the failure of a conditional PUT/PATCH. The most likely explanation is that another client changed this object while you were working on it, and your version of the object is now out of date. Nrrrrr r osrr ceZdZdZy)r z.An exception representing a server-side error.Nrrrrr r xr1rr c.tttttt d}|j dzdkry|j|j t}|tur1|j dzdk(rt}n|j dzdk(rt}|||S)zTurn an HTTP response into an HTTPError subclass. :return: None if the response code is 1xx, 2xx or 3xx. Otherwise, an instance of an appropriate HTTPError subclass (or HTTPError if nothing else is appropriate. )iiiiiidN) rrr rrr r$getrr r)rrhttp_errors_by_status_codeclss r error_forrA|s      "#"(,,X__iH i ??c !Q &C __ #q (C x !!rN)rtype __metaclass____all__ Exceptionr rrr rrrrr rrrr r rArrrrFs&!  $=9=1|1%+%LGmG P P9)9?;?<{<{EED{D9)9"r