Skip to content

Commit

Permalink
Merge pull request #2078 from tseaver/add-502-exception-class
Browse files Browse the repository at this point in the history
Add missing exception class for '502 Bad Gateway' response code.
  • Loading branch information
tseaver authored Aug 9, 2016
2 parents 4dbd7f9 + 2dca7ac commit bd5273e
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 bd5273e

Please sign in to comment.