Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add Gateway Timeout exception.
  • Loading branch information
daspecster committed Oct 20, 2016
commit 33d7c35a14991425a23bb66540fd085532e3403d
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