This document lists the standardized error codes used in the API responses.
All error responses will follow this structure:
{
"status": false,
"message": "Human readable error message",
"error_code": "category/specific-error"
}auth/missing-token: Authorization header missing.auth/invalid-token: Token verification failed.auth/user-not-found: User profile does not exist.auth/forbidden: Insufficient permissions.
request/missing-payload: Required fields are missing.request/invalid-payload: Data format is incorrect.request/not-found: Requested resource not found.
logic/team-full: Team has reached maximum capacity.logic/already-in-team: User is already in a team.logic/not-in-team: User must be in a team to perform this action.logic/event-not-found: Event does not exist.logic/payment-failed: Payment initiation failed.
server/internal-error: Unexpected server error.