-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Closed
Labels
type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.
Description
to improve error handling in the HttpError class, it would be useful to have a simpler way to get the request status code, as a status code property in the class.
eg.
try:
self.client.snapshots().get(
project=[project name],
snapshot=[description]
).execute()
except HttpError as err:
if err.status_code == 404:
do_something()Metadata
Metadata
Assignees
Labels
type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.