Skip to main content

Error Codes

All errors are returned as JSON with a code and message field.

CodeStatusDescription
INVALID_CREDENTIALS401Wrong email or password
USER_NOT_FOUND404User does not exist
USER_ALREADY_EXISTS409Email already registered
SESSION_NOT_FOUND401Session expired or missing
INVALID_TOKEN400Invalid or expired token
OAUTH_ERROR400OAuth flow failed
RATE_LIMIT_EXCEEDED429Too many requests
PASSWORD_TOO_SHORT400Password below minimum length
ACCOUNT_NOT_LINKED400OAuth account not linked
VALIDATION_ERROR400Request body validation failed
INVALID_JSON400Request body is not valid JSON
NOT_FOUND404Endpoint not found

Example response

{
"code": "INVALID_CREDENTIALS",
"message": "Invalid email or password"
}