[api-ref] Unify the format of the error response code in files

Unify the format of the error response code in server_networks.inc
and server_states.inc to make them same with the others.
They may be missed when changing.

Change-Id: Id8c13b80f51ee2e9eb53345993a431f9020223fb
This commit is contained in:
shangxiaobj 2018-01-28 18:56:36 -08:00 committed by ShangXiao
parent 1a0ee0e7d0
commit 305f6a1254
2 changed files with 7 additions and 14 deletions

View File

@ -52,7 +52,8 @@ optional ``fixed_address`` parameter.
Normal response code: 204
Error codes: 400,401,403,404,409
Error response codes: badRequest(400), unauthorized(401), forbidden(403),
itemNotFound(404), conflict(409)
Request
-------
@ -108,7 +109,8 @@ Adds an interface to a server.
Normal response code: 204
Error codes: 400,401,403,404,409
Error response codes: badRequest(400), unauthorized(401), forbidden(403),
itemNotFound(404), conflict(409)
Request
-------

View File

@ -19,10 +19,7 @@ Request a change to the Server's power state.
Normal response code: 202
Error codes:
- 409 (ClientError)
- 400 (InvalidState)
- 406 (NotAcceptable)
Error response codes: badRequest(400), forbidden(403), conflict(409)
Request
-------
@ -51,10 +48,7 @@ Request a change to the Server's lockstate.
Normal response code: 202
Error codes:
- 409 (ClientError)
- 400 (BadRequest)
- 403 (Forbidden)
Error response codes: badRequest(400), forbidden(403), conflict(409)
Request
-------
@ -87,10 +81,7 @@ Request a change to the Server's provision state.
Normal response code: 202
Error codes:
- 409 (ClientError)
- 400 (BadRequest)
- 403 (Forbidden)
Error response codes: badRequest(400), forbidden(403), conflict(409)
Request
-------