BrainUs LogoBrainUs AI
Error Reference

Error Reference

Complete reference for BrainUs API error codes and troubleshooting

This guide provides a complete reference for all error codes returned by the BrainUs API, along with troubleshooting steps.

Error Response Format

All API errors follow a consistent JSON structure:

{
  "error": {
    "code": "authentication_failed",
    "message": "Invalid API key",
    "details": {
      "reason": "The provided API key is invalid or has been revoked"
    }
  }
}

HTTP Status Codes

Status CodeMeaningDescription
200OKRequest succeeded
400Bad RequestInvalid request parameters
401UnauthorizedInvalid or missing API key
403ForbiddenAPI key lacks required permission
404Not FoundResource not found
429Too Many RequestsRate limit exceeded
500Internal Server ErrorServer error
503Service UnavailableService temporarily down

Need help? Contact developer@brainus.lk

Error Categories

On this page