The AnswerPal API uses standard HTTP status codes to indicate the success or failure of API requests. This page lists all common error codes, explains their meaning, and provides best practices for handling errors in your integration. For endpoint-specific error codes, refer to the relevant API documentation section.
Status Code | Error Name | Description | Example Solution |
---|---|---|---|
400 | Bad Request | The request could not be understood due to invalid input, missing parameters, or validation errors. | Check input data and required fields. |
401 | Unauthorized | Authentication failed or was not provided. Token may be missing, expired, or invalid. | Check your Authorization header and credentials. Re-authenticate if needed. |
403 | Forbidden | Authenticated but not permitted to access the resource. | Contact your admin or support to verify your access rights. |
404 | Not Found | The requested resource does not exist. | Check the resource ID or URL. |
409 | Conflict | Duplicate or conflicting resource (e.g., trying to create a resource with the same unique field). | Ensure the resource does not already exist or resolve conflicts. |
415 | Unsupported Media Type | The uploaded file type is not supported. | Use a supported file format (e.g., PDF, PNG). |
500 | Internal Server Error | Unexpected server-side error. | Retry later or contact support if the issue persists. |
Elementor Code Block Paste the following:
{
"status": 401,
"error": "Unauthorized",
"message": "The API call was made without valid credentials or with an expired/invalid token."
}
{
"status": 400,
"error": "Bad Request",
"message": "Missing required parameter: sourceText."
}
{
"status": 404,
"error": "Not Found",
"message": "The requested resource does not exist."
}
Check your authentication credentials and ensure your token is valid and not expired.
Ensure you are not creating a duplicate resource or update the conflicting data.
Retry the request later. If the error persists, contact support.
AnswerPal: AI-powered customer service solutions to elevate your support and communication effortlessly.
For all support, sales, and partnership inquiries, email us at info@answerpal.eu