From 10559e91e1a28df5fccfd19d977c58184eaba74e Mon Sep 17 00:00:00 2001 From: He Jie Xu Date: Sun, 22 Nov 2015 22:32:01 +0800 Subject: [PATCH] docs: using the correct format and real world example for fault message This patch corrects the fault message format, and use an example which existed in the real world. blueprint complete-todo-in-api-concept-doc Change-Id: I76706cca5a9fdcfa6c3e2c9d08aa8f94fb9471d8 --- api-guide/source/faults.rst | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/api-guide/source/faults.rst b/api-guide/source/faults.rst index c2ccc754d017..3c7076cd422e 100644 --- a/api-guide/source/faults.rst +++ b/api-guide/source/faults.rst @@ -64,10 +64,9 @@ information about the fault in the body of the response. .. code:: { - "computeFault":{ - "code":500, - "message":"Fault!", - "details":"Error Details..." + "itemNotFound":{ + "code": 404, + "message":"Aggregate agg_h1 could not be found." } } @@ -126,10 +125,10 @@ created timestamp that specify when the fault occurred. "id": "52415800-8b69-11e0-9b19-734f216543fd" }, "fault" : { - "code" : 404, + "code" : 500, "created": "2010-08-10T11:59:59Z", - "message" : "Could not find image 52415800-8b69-11e0-9b19-734f6f007777", - "details" : "Fault details" + "message": "No valid host was found. There are not enough hosts available.", + "details": [snip] }, "links": [ {