Skip to content

Commit

Permalink
Merge pull request #267 from polishmatt/504
Browse files Browse the repository at this point in the history
add error class for 504s
  • Loading branch information
bhelx committed Oct 5, 2018
2 parents 238076b + 9a52142 commit 6da05ed
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions recurly/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,16 @@ class ServiceUnavailableError(ServerError):
pass


class GatewayTimeoutError(ServerError):
"""An error indicating the service is temporarily unavailable.
This error results from an HTTP ``504 Gateway Timeout``
response. Try the request again.
"""
pass


class UnexpectedStatusError(ResponseError):

"""An error resulting from an unexpected status code returned by
Expand All @@ -325,6 +335,7 @@ def __unicode__(self):
500: InternalServerError,
502: BadGatewayError,
503: ServiceUnavailableError,
504: GatewayTimeoutError,
}


Expand Down

0 comments on commit 6da05ed

Please sign in to comment.