[Groonga-commit] droonga/droonga.org at 3c2f093 [gh-pages] Don't write status code at first.

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Dec 26 17:59:45 JST 2013


YUKI Hiroshi	2013-12-26 17:59:45 +0900 (Thu, 26 Dec 2013)

  New Revision: 3c2f093a1b9954e47a99941fedeb575ec9e99e31
  https://github.com/droonga/droonga.org/commit/3c2f093a1b9954e47a99941fedeb575ec9e99e31

  Message:
    Don't write status code at first.
    
    Because it is just an extra information on Droonga.

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

  Modified: reference/commands/add/index.md (+10 -10)
===================================================================
--- reference/commands/add/index.md    2013-12-26 15:58:09 +0900 (3df9880)
+++ reference/commands/add/index.md    2013-12-26 17:59:45 +0900 (d4164e4)
@@ -203,23 +203,23 @@ This returns an array with including a boolean value `true` like following as th
 
 This command reports errors not only [general errors](/reference/message/#error) but also followings.
 
-### `400` `MissingTableParameter`
+### `MissingTableParameter`
 
-Means you've forgotten to specify the `table` parameter.
+Means you've forgotten to specify the `table` parameter. The status code is `400`.
 
-### `400` `MissingPrimaryKeyParameter`
+### `MissingPrimaryKeyParameter`
 
-Means you've forgotten to specify the `key` parameter, for a table with the primary key column.
+Means you've forgotten to specify the `key` parameter, for a table with the primary key column. The status code is `400`.
 
-### `400` `MismatchedValueType`
+### `MismatchedValueType`
 
-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.
+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. The status code is `400`.
 
-### `404` `UnknownTable`
+### `UnknownTable`
 
-Means you've specified a table which is not existing in the specified dataset.
+Means you've specified a table which is not existing in the specified dataset. The status code is `404`.
 
-### `404` `UnknownColumn`
+### `UnknownColumn`
 
-Means you've specified any column which is not existing in the specified table.
+Means you've specified any column which is not existing in the specified table. The status code is `404`.
 

  Modified: reference/message/index.md (+14 -10)
===================================================================
--- reference/message/index.md    2013-12-26 15:58:09 +0900 (009415c)
+++ reference/message/index.md    2013-12-26 17:59:45 +0900 (582f4a0)
@@ -134,20 +134,24 @@ An error response has the `type` same to a regular response, but it has differen
 Status codes of error responses are similar to HTTP's one. Possible values:
 
 `400` and other `4xx` statuses
-: An error of the request message. General errors for any message type are:
-  
-  `400` `MissingDatasetParameter`
-  : Means you've forgotten to specify the `dataset`.
-  
-  `404` `UnknownDataset`
-  : Means you've specified a dataset which is not existing.
-  
-  `400` `UnknownCommand`
-  : Means there is no adapter or handler for the command given as the `type`.
+: An error of the request message.
 
 `500` and other `5xx` statuses
 : An internal error of the Droonga Engine.
 
+### Error types {#error-type}
+
+There are some error types for any command.
+
+`MissingDatasetParameter`
+: Means you've forgotten to specify the `dataset`. The status code is `400`.
+
+`UnknownDataset`
+: Means you've specified a dataset which is not existing. The status code is `404`.
+
+`UnknownCommand`
+: Means there is no adapter or handler for the command given as the `type`. The status code is `400`.
+
 ### Body of error responses {#error-body}
 
 The basic format of the body of an error response is like following:
-------------- next part --------------
HTML����������������������������...
Download 



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