エラーレスポンス
概要 APIリクエストでエラーが発生するとHTTPstatusが200以外でエラーの応答が返ります。
レスポンスボディ
JSONキー | 値 | 必須 | 説明 |
---|---|---|---|
error | object | ○ | error objectを設定します |
-
error object
JSONキー 値 必須 説明 code 文字列 ○ エラーコードです message 文字列 ○ エラーメッセージです -
サンプル
{
"error":{
"code":"101",
"message":"The API you requested is not supported"
}
}
エラーコードとエラーメッセージ
HTTPstatus | code | message |
---|---|---|
404 | 101 | The API you requested is not supported |
400 | 102 | The API version you requested is inactive |
400 | 103 | Some query parameters are missing on your request |
400 | 104 | Requested query parameters are invalid |
400 | 105 | Request body is invalid format |
400 | 106 | Parameters in request body are invalid |
400 | 107 | The server encountered an error while reading the query data |
400 | 108 | The server encountered an error while reading the query feature array. The query feature array may not be valid shape or data type |
400 | 109 | The model name or featurename in the request body is invalid |
400 | 110 | Too many input data |
400 | 119 | Request entity too large |
400 | 120 | Asynchronous request is not supported |
403 | 201 | Your request was denied |
404 | 301 | The resource you requested was not found |
405 | 302 | The HTTP method you requested is not permitted |
500 | 501 | The server encountered a temporary error in file system and could not complete your request |
500 | 502 | The server encountered a temporary error in data base and could not complete your request |
500 | 503 | The server encountered a temporary error in intra-server netwrork and could not complete your request |
500 | 504 | The server encountered a temporary error in recognition engine and could not complete your request |
500 | 505 | The server encountered a temporary error and could not complete your request |
504 | 511 | Gateway timeout |