Skip to content

Commit 33d7c35

Browse files
committed
Add Gateway Timeout exception.
1 parent 881a953 commit 33d7c35

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

core/google/cloud/exceptions.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,11 @@ class ServiceUnavailable(ServerError):
177177
code = 503
178178

179179

180+
class GatewayTimeout(ServerError):
181+
"""Excepption mapping a `504 Gateway Timeout'` response."""
182+
code = 504
183+
184+
180185
def make_exception(response, content, error_info=None, use_json=True):
181186
"""Factory: create exception based on HTTP response code.
182187

0 commit comments

Comments
 (0)