Add 400 as error code for resource class delete

DELETE /placement/resource_classes/VCPU
leads to something like:
Cannot delete standard resource class VCPU:

with return code 400, we should add this into doc

actually it returns 2 lines of
Cannot delete standard resource class VCPU:
now, another patch will fix it.

Partial implement blueprint placement-doc-enhancement-queens

Change-Id: I957325bc421033743472cdd4de17d260da942174
This commit is contained in:
jichenjc 2017-09-25 08:15:51 +08:00
parent ae4b5d0147
commit 9f2ddaba30

View File

@ -123,7 +123,10 @@ Delete the resource class identified by `{name}`.
Normal Response Codes: 204
Error response codes: itemNotFound(404), conflict(409)
Error response codes: badRequest(400), itemNotFound(404), conflict(409)
A `400 BadRequest` response code will be returned if trying
to delete a standard resource class.
A `409 Conflict` response code will be returned if there exist
inventories for the resource class.