> ## Documentation Index
> Fetch the complete documentation index at: https://developer.affinity.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Error Codes

Here is a list of the error codes the API will return if something goes wrong (see endpoint
documentation for endpoint-specific errors):

| Error Code | Meaning                                                                                                                                                                                                     |
| ---------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 400        | Bad Request — See endpoint documentation for more information.                                                                                                                                              |
| 401        | Unauthorized — Your API key is invalid.                                                                                                                                                                     |
| 403        | Forbidden — Insufficient rights to a resource.                                                                                                                                                              |
| 404        | Not Found — Requested resource does not exist. See endpoint documentation for more information.                                                                                                             |
| 405        | Method Not Allowed — The method being used is not supported for this resource.                                                                                                                              |
| 422        | Unprocessable Entity — Malformed parameters supplied. This can also happen in cases the parameters supplied logically cannot complete the request. In this case, an appropriate error message is delivered. |
| 429        | Too Many Requests — You have exceeded the rate limit.                                                                                                                                                       |
| 500        | Internal Server Error — We had a problem with our server. Try again later.                                                                                                                                  |
| 503        | Service Unavailable — This shouldn't generally happen. Contact us if you encounter this error.                                                                                                              |
