Skip to content

Commit bd5273e

Browse files
authored
Merge pull request #2078 from tseaver/add-502-exception-class
Add missing exception class for '502 Bad Gateway' response code.
2 parents 4dbd7f9 + 2dca7ac commit bd5273e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

gcloud/exceptions.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,11 @@ class MethodNotImplemented(ServerError):
151151
code = 501
152152

153153

154+
class BadGateway(ServerError):
155+
"""Exception mapping a '502 Bad Gateway' response."""
156+
code = 502
157+
158+
154159
class ServiceUnavailable(ServerError):
155160
"""Exception mapping a '503 Service Unavailable' response."""
156161
code = 503

0 commit comments

Comments
 (0)