From 6939da33e32ca79752d727ea6299e6ab3d358490 Mon Sep 17 00:00:00 2001 From: He Jie Xu Date: Mon, 9 May 2016 11:05:24 +0800 Subject: [PATCH] Complete method verification of os-shevle Correct the error status responses for os-shelve's methods Part of bp:api-ref-in-rst Change-Id: Id917c0a8bfde655ef4ca875eed5d54e82778b040 --- api-ref/source/servers-action-shelve.inc | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/api-ref/source/servers-action-shelve.inc b/api-ref/source/servers-action-shelve.inc index 288db0d2f2..c17d35fb7c 100644 --- a/api-ref/source/servers-action-shelve.inc +++ b/api-ref/source/servers-action-shelve.inc @@ -1,5 +1,4 @@ .. -*- rst -*- -.. needs:method_verification .. needs:parameter_verification .. needs:example_verification .. needs:body_verification @@ -35,8 +34,7 @@ If the server status does not change to ``SHELVED`` or ``SHELVED_OFFLOADED``, th Normal response codes: 202 -Error response codes: computeFault(400, 500), serviceUnavailable(503), badRequest(400), -unauthorized(401), forbidden(403), badMethod(405), itemNotFound(404) +Error response codes: unauthorized(401), forbidden(403), itemNotFound(404), conflict(409) Request ------- @@ -84,8 +82,7 @@ If the server status does not change to ``SHELVED_OFFLOADED``, the shelve-offloa Normal response codes: 202 -Error response codes: computeFault(400, 500), serviceUnavailable(503), badRequest(400), -unauthorized(401), forbidden(403), badMethod(405), itemNotFound(404) +Error response codes: unauthorized(401), forbidden(403), itemNotFound(404), conflict(409) Request ------- @@ -133,8 +130,7 @@ If the server status does not change to ``ACTIVE``, the unshelve operation faile Normal response codes: 202 -Error response codes: computeFault(400, 500), serviceUnavailable(503), badRequest(400), -unauthorized(401), forbidden(403), badMethod(405), itemNotFound(404) +Error response codes: unauthorized(401), forbidden(403), itemNotFound(404), conflict(409) Request -------