---
agentTools:
  projectIndex: https://docs.addevent.com/llms.txt
---

# Response codes & errors

AddEvent uses conventional HTTP response codes to indicate the success or failure of an API request. In general:

* Codes in the `2xx` range indicate success.
* Codes in the `4xx` range indicate an error that failed given the information provided (e.g., a required parameter was omitted, an object was not found, etc.).
* Codes in the `5xx` range indicate an error with AddEvent's servers (these are rare).

### HTTP status code summary

[block:parameters]
{
  "data": {
    "h-0": "Response code",
    "h-1": "Meaning",
    "0-0": "`200 Ok`",
    "0-1": "Everything worked as expected. Covers the following cases:  \n- Object was retrieved or updated successfully  \n- Searches will always return `200` responses, even if there are no results",
    "1-0": "`201 Created`",
    "1-1": "Everything worked as expected: object created successfully.",
    "2-0": "`204 No content`",
    "2-1": "Everything worked as expected: object deleted successfully.",
    "3-0": "`400 Bad request`",
    "3-1": "The request was unacceptable, oftern due to a missing required parameter.",
    "4-0": "`401 Unauthorized`",
    "4-1": "No valid API key provided.",
    "5-0": "`403 Forbidden`",
    "5-1": "The API key doesn't have the permission to perform the request. Usually one of the following cases:  \n- The account's plan does not support API access (e.g. the free Hobby plan)  \n- The account has exceeded a specific usage limit that prevents them from performing this action",
    "6-0": "`404 Not found`",
    "6-1": "The requested resource does not exist, has been deleted, or does not belong to the account which made the API request.",
    "7-0": "`405  Not allowed`",
    "7-1": "The endpoint does not support this method (verb).",
    "8-0": "`500 Server error`",
    "8-1": "Something went wrong on AddEvent's end."
  },
  "cols": 2,
  "rows": 9,
  "align": [
    "left",
    "left"
  ]
}
[/block]

### Errors

For most `4xx` errors, we include an `error_id` and a `message` that can be used to troubleshoot the error.