Skip to content

Commit

Permalink
Merge pull request googleapis#2575 from daspecster/add-gateway-timeou…
Browse files Browse the repository at this point in the history
…t-exception-2574

Add Gateway Timeout exception.
  • Loading branch information
dhermes authored Oct 21, 2016
2 parents 33e9ec7 + cc6887c commit 2fd542d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/google/cloud/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,11 @@ class ServiceUnavailable(ServerError):
code = 503


class GatewayTimeout(ServerError):
"""Excepption mapping a `504 Gateway Timeout'` response."""
code = 504


def make_exception(response, content, error_info=None, use_json=True):
"""Factory: create exception based on HTTP response code.
Expand Down

0 comments on commit 2fd542d

Please sign in to comment.