[Groonga-commit] droonga/droonga.org at 82d64d8 [gh-pages] Add more error infromation about "add" command

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Dec 25 19:10:16 JST 2013


YUKI Hiroshi	2013-12-25 19:10:16 +0900 (Wed, 25 Dec 2013)

  New Revision: 82d64d8476525a30db2c6d9f11986908d87b1cf2
  https://github.com/droonga/droonga.org/commit/82d64d8476525a30db2c6d9f11986908d87b1cf2

  Message:
    Add more error infromation about "add" command

  Modified files:
    reference/commands/add/index.md

  Modified: reference/commands/add/index.md (+14 -1)
===================================================================
--- reference/commands/add/index.md    2013-12-25 19:06:39 +0900 (4608c34)
+++ reference/commands/add/index.md    2013-12-25 19:10:16 +0900 (166807b)
@@ -195,12 +195,16 @@ Value of unspecified columns will not be changed.
 
 ## Responses {#response}
 
-This returns an array with including a boolean value `true` like follwing as the response's `body`, if a record is successfully added or updated.
+This returns an array with including a boolean value `true` like follwing as the response's `body`, with `200` as its `statusCode`, if a record is successfully added or updated.
 
     [true]
 
 ## Error types {#errors}
 
+### `400` `MissingTable`
+
+Means you've forgotten to specify the `table` parameter.
+
 ### `400` `MissingPrimaryKey`
 
 Means you've forgotten to specify the `key` parameter, for a table with the primary key column.
@@ -208,3 +212,12 @@ Means you've forgotten to specify the `key` parameter, for a table with the prim
 ### `400` `InvalidValueType`
 
 Means you've specified mismatched type value for a column. For example, a string for a geolocation column, a string for an integer column, etc.
+
+### `404` `UnknownTable`
+
+Means you've specified an table which is not existing in the specified dataset.
+
+### `404` `UnknownColumn`
+
+Means you've specified any column which is not existing in the specified table.
+
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index