Skip to content

Commit

Permalink
Add missing exception class for '502 Bad Gateway' response code.
Browse files Browse the repository at this point in the history
We do see such (transient) errors in the wild.
  • Loading branch information
tseaver committed Aug 9, 2016
1 parent 4dbd7f9 commit 2dca7ac
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gcloud/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,11 @@ class MethodNotImplemented(ServerError):
code = 501


class BadGateway(ServerError):
"""Exception mapping a '502 Bad Gateway' response."""
code = 502


class ServiceUnavailable(ServerError):
"""Exception mapping a '503 Service Unavailable' response."""
code = 503
Expand Down

0 comments on commit 2dca7ac

Please sign in to comment.