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:
ERR_TIER_UPGRADE_REQUIRED. Trial credits for higher API layers (L2–L4) are exhausted. Upgrade to Developer or Growth plan to unlock production volume.ERR_QUOTA_EXCEEDED. Monthly subscription or add-on credit balance has been fully consumed. Upgrade plan or purchase credit top-ups.ERR_EMAIL_VERIFICATION_REQUIRED. Unverified email sandbox credit cap (100 credits) reached. Verify developer email to unlock full 1,000 monthly credits.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"
}
}