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 committed Oct 21, 2016
2 parents 09061d1 + 33d7c35 commit bf0c541
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 bf0c541

Please sign in to comment.