Reference for HTTP status codes, error payloads, and diagnostic codes returned by the ALOC API.
All API error responses follow a consistent format. They include a standard HTTP status code and a JSON response body containing an error identifier and a human-readable message:
{
"error": "unauthorized",
"message": "Invalid API key format."
}The following table documents all unique error conditions that may occur:
If you discover typographical mistakes, wrong keys, or errors in a question or explanation, you can flag it using the content reporting endpoint:
question, option_[a-e], correct_answer, explanation, other.{
"message": "We have received your report on this question. Thank you.",
"data": {
"reportId": 14,
"status": "pending"
}
}