Skip to content

Commit

Permalink
Add Gateway Timeout exception.
Browse files Browse the repository at this point in the history
  • Loading branch information
daspecster committed Oct 20, 2016
1 parent 881a953 commit 33d7c35
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 33d7c35

Please sign in to comment.