Skip to content
This repository has been archived by the owner on Mar 28, 2019. It is now read-only.

Commit

Permalink
Merge pull request #657 from mozilla-services/move-retry-after-to-err…
Browse files Browse the repository at this point in the history
…or-responses

Move Retry-After to error responses
  • Loading branch information
Natim committed Feb 18, 2016
2 parents 5d7fe88 + f4fb124 commit d2d2f8e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
9 changes: 2 additions & 7 deletions cliquet_docs/api/backoff.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,5 @@ requests.
Retry-After indicators
======================

A ``Retry-After`` header will be added to error responses (>=500),
telling the client how many seconds it should wait before trying
again.

::

Retry-After: 30
A ``Retry-After`` header will be added if response is an error (>=500).
See more details about :ref:`error responses <error-responses>`.
12 changes: 12 additions & 0 deletions cliquet_docs/api/errors.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,18 @@ If the HTTP status is not OK (<200 or >=400), the response contains a JSON mappi
Refer yourself to the ref:`set of errors codes <errors>`.


Retry-After indicators
======================

A ``Retry-After`` header will be added to error responses (>=500),
telling the client how many seconds it should wait before trying
again.

::

Retry-After: 30


Precondition errors
===================

Expand Down

0 comments on commit d2d2f8e

Please sign in to comment.