Browse Source

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

changes/09/541209/1
Zuul 1 year ago
parent
commit
34c2478ce4
2 changed files with 7 additions and 14 deletions
  1. 4
    2
      api-ref/source/v1/server_networks.inc
  2. 3
    12
      api-ref/source/v1/server_states.inc

+ 4
- 2
api-ref/source/v1/server_networks.inc View File

@@ -52,7 +52,8 @@ optional ``fixed_address`` parameter.
52 52
 
53 53
 Normal response code: 204
54 54
 
55
-Error codes: 400,401,403,404,409
55
+Error response codes: badRequest(400), unauthorized(401), forbidden(403),
56
+itemNotFound(404), conflict(409)
56 57
 
57 58
 Request
58 59
 -------
@@ -108,7 +109,8 @@ Adds an interface to a server.
108 109
 
109 110
 Normal response code: 204
110 111
 
111
-Error codes: 400,401,403,404,409
112
+Error response codes: badRequest(400), unauthorized(401), forbidden(403),
113
+itemNotFound(404), conflict(409)
112 114
 
113 115
 Request
114 116
 -------

+ 3
- 12
api-ref/source/v1/server_states.inc View File

@@ -19,10 +19,7 @@ Request a change to the Server's power state.
19 19
 
20 20
 Normal response code: 202
21 21
 
22
-Error codes:
23
-    - 409 (ClientError)
24
-    - 400 (InvalidState)
25
-    - 406 (NotAcceptable)
22
+Error response codes: badRequest(400), forbidden(403), conflict(409)
26 23
 
27 24
 Request
28 25
 -------
@@ -51,10 +48,7 @@ Request a change to the Server's lockstate.
51 48
 
52 49
 Normal response code: 202
53 50
 
54
-Error codes:
55
-    - 409 (ClientError)
56
-    - 400 (BadRequest)
57
-    - 403 (Forbidden)
51
+Error response codes: badRequest(400), forbidden(403), conflict(409)
58 52
 
59 53
 Request
60 54
 -------
@@ -87,10 +81,7 @@ Request a change to the Server's provision state.
87 81
 
88 82
 Normal response code: 202
89 83
 
90
-Error codes:
91
-    - 409 (ClientError)
92
-    - 400 (BadRequest)
93
-    - 403 (Forbidden)
84
+Error response codes: badRequest(400), forbidden(403), conflict(409)
94 85
 
95 86
 Request
96 87
 -------

Loading…
Cancel
Save