api-ref: Fix wrong HTTP response codes
* POST /servers
The 413 response code has not been expected
since I470b53af45ff47c1dec98d09d7a426a29ca1efc6.
So remove 413.
* POST /server/{server_id}/action
In 'Rebuild' action, the 413 response code has not been expected
since I470b53af45ff47c1dec98d09d7a426a29ca1efc6.
So remove 413.
In 'Rescue' action, the normal response code is actually 200
instead of 202.
So fix it.
Change-Id: I6e91d3ac751777f48ab084395a66cb3f83bfcca2
Implements: blueprint api-ref-in-rst-pike
Closes-Bug: #1677452
This commit is contained in:
@@ -398,7 +398,7 @@ set the ``preserve_ephemeral`` parameter to ``true``.
|
||||
Normal response codes: 202
|
||||
|
||||
Error response codes: badRequest(400),unauthorized(401), forbidden(403),
|
||||
itemNotFound(404), conflict(409), payloadTooLarge(413)
|
||||
itemNotFound(404), conflict(409)
|
||||
|
||||
Request
|
||||
-------
|
||||
@@ -521,7 +521,7 @@ reference, the base image reference is used by default.
|
||||
After you successfully rescue a server and make a ``GET
|
||||
/servers/{server_id}`` request, its status changes to ``RESCUE``.
|
||||
|
||||
Normal response codes: 202
|
||||
Normal response codes: 200
|
||||
|
||||
Error response codes: badRequest(400), unauthorized(401), forbidden(403),
|
||||
itemNotFound(404), conflict(409), notImplemented(501)
|
||||
|
||||
@@ -280,7 +280,7 @@ request.
|
||||
Normal response codes: 202
|
||||
|
||||
Error response codes: badRequest(400), unauthorized(401),
|
||||
forbidden(403), itemNotFound(404), conflict(409), entityTooLarge(413)
|
||||
forbidden(403), itemNotFound(404), conflict(409)
|
||||
|
||||
..
|
||||
TODO(sdague): leave these notes for later when fixing the body
|
||||
|
||||
Reference in New Issue
Block a user