diff options
author | shangxiaobj <shangxiaobj@inspur.com> | 2018-01-22 18:47:02 -0800 |
---|---|---|
committer | ShangXiao <shangxiaobj@inspur.com> | 2018-01-25 00:25:55 +0000 |
commit | e54c46e312adac96b4830fd4eb1e1817a9bd767f (patch) | |
tree | c685f32c9f67e5359ee8e4cdc26c4bb264f5ffaf /api-ref/source/databases.inc | |
parent | 980577ee5b7e97811b4c49ddeecef971fea3e993 (diff) | |
download | trove-e54c46e312adac96b4830fd4eb1e1817a9bd767f.tar.gz |
[api-ref] Add fault names for the error response codes
Error response codes with fault names will be easier for understanding.
Change-Id: I5970cb6d40cf5793f024fd5d46b0da8f24bee0d6
Diffstat (limited to 'api-ref/source/databases.inc')
-rw-r--r-- | api-ref/source/databases.inc | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/api-ref/source/databases.inc b/api-ref/source/databases.inc index 465a755d..e270d390 100644 --- a/api-ref/source/databases.inc +++ b/api-ref/source/databases.inc @@ -17,7 +17,10 @@ Deletes a database. This operation also deletes all data that is associated with the database. -Error response codes:202,413,405,404,403,401,400,422,503,500,501, +Normal response codes: 202 +Error response codes: badRequest(400),unauthorized(401),forbidden(403),itemNotFound(404), +badMethod(405), overLimit(413),unprocessableEntity(422),instanceFault(500),notImplemented(501), +serviceUnavailable(503) Request @@ -51,7 +54,10 @@ Create database Creates a database within an instance. -Error response codes:202,413,405,404,403,401,400,422,503,500,501, +Normal response codes: 202 +Error response codes: badRequest(400),unauthorized(401),forbidden(403),itemNotFound(404), +badMethod(405),overLimit(413),unprocessableEntity(422),instanceFault(500),notImplemented(501), +serviceUnavailable(503) Request @@ -101,7 +107,9 @@ databases. Normal response codes: 200 -Error response codes:413,405,404,403,401,400,422,503,500,501, +Error response codes: badRequest(400),unauthorized(401),forbidden(403),itemNotFound(404), +badMethod(405),overLimit(413),unprocessableEntity(422),instanceFault(500),notImplemented(501), +serviceUnavailable(503) Request |