From e3b0edbbe31773eca70151c3ba60457a8d6a4298 Mon Sep 17 00:00:00 2001 From: He Jie Xu Date: Mon, 9 May 2016 11:21:57 +0800 Subject: [PATCH] Compelete method verification of os-servers-admin Corrects the error status responses for os-servers-admin Part of bp:api-ref-in-rst Change-Id: I3385834ed13104b49fbc4d2a566f9553da046c4b --- api-ref/source/servers-admin-action.inc | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/api-ref/source/servers-admin-action.inc b/api-ref/source/servers-admin-action.inc index 65f95e81b565..4ec2550b0190 100644 --- a/api-ref/source/servers-admin-action.inc +++ b/api-ref/source/servers-admin-action.inc @@ -1,5 +1,4 @@ .. -*- rst -*- -.. needs:method_verification .. needs:parameter_verification .. needs:example_verification .. needs:body_verification @@ -30,8 +29,7 @@ Policy defaults enable only users with the administrative role or the owner of t 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: badRequest(400), unauthorized(401), forbidden(403), itemNotFound(404), conflict(409) Request ------- @@ -63,8 +61,7 @@ Policy defaults enable only users with the administrative role or the owner of t 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: badRequest(400), unauthorized(401), forbidden(403), conflict(409) Request ------- @@ -96,8 +93,7 @@ Policy defaults enable only users with the administrative role or the owner of t 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: badRequest(400), unauthorized(401), forbidden(403), itemNotFound(404), conflict(409) Request ------- @@ -131,8 +127,7 @@ Policy defaults enable only users with the administrative role to perform this o 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: badRequest(400), unauthorized(401), forbidden(403), itemNotFound(404), conflict(409) Request ------- @@ -166,8 +161,7 @@ Policy defaults enable only users with the administrative role or the owner of t 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) Request -------