diff options
| author | Chao Xu <xuchao@google.com> | 2015-10-30 15:32:44 -0700 |
|---|---|---|
| committer | Chao Xu <xuchao@google.com> | 2015-11-25 10:27:03 -0800 |
| commit | b0542299ca51e3cbefd0c36b042a392ca407c098 (patch) | |
| tree | b24d931bfb973503c61310e458247297762ffc9b | |
| parent | 4cb900b2517ac6e333f32bfbb15ce271a941c18f (diff) | |
change the "too old resource version" error from InternalError to 410 Gone.
| -rw-r--r-- | api-conventions.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/api-conventions.md b/api-conventions.md index cf389231..9a71fe1c 100644 --- a/api-conventions.md +++ b/api-conventions.md @@ -547,6 +547,10 @@ The following HTTP status codes may be returned by the API. * * If updating an existing resource: * See `Conflict` from the `status` response section below on how to retrieve more information about the nature of the conflict. * GET and compare the fields in the pre-existing object, merge changes (if still valid according to preconditions), and retry with the updated request (including `ResourceVersion`). +* `410 StatusGone` + * Indicates that the item is no longer available at the server and no forwarding address is known. + * Suggested client recovery behavior + * Do not retry. Fix the request. * `422 StatusUnprocessableEntity` * Indicates that the requested create or update operation cannot be completed due to invalid data provided as part of the request. * Suggested client recovery behavior |
