{"__v":1,"_id":"5845a4a89f6fbb1b004307d2","category":{"version":"5845a4a89f6fbb1b004307b7","project":"54d3007669578e0d002730c9","_id":"5845a4a89f6fbb1b004307ba","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-07-30T06:53:33.020Z","from_sync":false,"order":2,"slug":"api-reference","title":"API reference"},"parentDoc":null,"project":"54d3007669578e0d002730c9","user":"55bf6cdcad601c2b00762d13","version":{"__v":1,"_id":"5845a4a89f6fbb1b004307b7","project":"54d3007669578e0d002730c9","createdAt":"2016-12-05T17:32:24.708Z","releaseDate":"2016-12-05T17:32:24.708Z","categories":["5845a4a89f6fbb1b004307b8","5845a4a89f6fbb1b004307b9","5845a4a89f6fbb1b004307ba","5845a4a89f6fbb1b004307bb","5845a4a89f6fbb1b004307bc","5845a4a89f6fbb1b004307bd","5845a4a89f6fbb1b004307be","5845a4a89f6fbb1b004307bf","5845a4a89f6fbb1b004307c0"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"25.0.0","version":"25"},"updates":["58aedd39b5b1c30f00348bed"],"next":{"pages":[],"description":""},"createdAt":"2015-08-03T22:38:02.705Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":11,"body":"The following table describes status and error codes returned by API.AI. \n\nIn the <a href=\"https://docs.api.ai/docs/status-object\" target=\"_blank\">status</a> object, the **code** field contains the status code and the **errorType** field contains the error type. \n\n| Status Code | Error Type | Description |\n| ----------- | ---------- | ----------- |\n| 200         | success    | Request was successful. |\n| 200         | deprecated | A resource is deprecated and will be removed in the future.|\n| 400         | bad_request | Some required parameter is missing or has the wrong value.<br>Details will be in the `errorDetails` field. |\n| 401 | unauthorized | Internal authorization failed. It might mean missing or wrong credentials. |\n| 404         | not_found | URI is not valid or the resource ID does not correspond to an existing resource. |\n| 405         | not_allowed | HTTP method not allowed, such as attempting to use a POST request with an endpoint that only accepts GET requests, or vice versa. |\n| 406 | not_acceptable | Can be returned if uploaded files have some errors. |\n| 409         | conflict    | The request could not be completed due to a conflict with the current state of the resource. This code is only returned in situations where it is expected that the user might be able to resolve the conflict and resubmit the request. For example, deleting an entity that is used in an intent will return this error. |\n| 429 | too_many_requests | Too many requests were sent in the short amount of time.","excerpt":"","slug":"status-and-error-codes","type":"basic","title":"Status and Error Codes"}

Status and Error Codes


The following table describes status and error codes returned by API.AI. In the <a href="https://docs.api.ai/docs/status-object" target="_blank">status</a> object, the **code** field contains the status code and the **errorType** field contains the error type. | Status Code | Error Type | Description | | ----------- | ---------- | ----------- | | 200 | success | Request was successful. | | 200 | deprecated | A resource is deprecated and will be removed in the future.| | 400 | bad_request | Some required parameter is missing or has the wrong value.<br>Details will be in the `errorDetails` field. | | 401 | unauthorized | Internal authorization failed. It might mean missing or wrong credentials. | | 404 | not_found | URI is not valid or the resource ID does not correspond to an existing resource. | | 405 | not_allowed | HTTP method not allowed, such as attempting to use a POST request with an endpoint that only accepts GET requests, or vice versa. | | 406 | not_acceptable | Can be returned if uploaded files have some errors. | | 409 | conflict | The request could not be completed due to a conflict with the current state of the resource. This code is only returned in situations where it is expected that the user might be able to resolve the conflict and resubmit the request. For example, deleting an entity that is used in an intent will return this error. | | 429 | too_many_requests | Too many requests were sent in the short amount of time.