Skip to main content

Error Codes

All API errors follow a consistent format:

{
"error": {
"code": "ERROR_CODE",
"message": "Human-readable description",
"status": 400,
"details": {}
}
}

HTTP Status Codes

StatusMeaning
200Success
201Created
204No Content (successful deletion)
400Bad Request -- invalid parameters
401Unauthorized -- invalid or missing authentication
403Forbidden -- insufficient permissions
404Not Found -- resource does not exist
409Conflict -- resource already exists or state conflict
413Payload Too Large -- file exceeds maximum size
422Unprocessable Entity -- validation error
429Too Many Requests -- rate limited
500Internal Server Error
503Service Unavailable -- temporarily down

Application Error Codes

Authentication Errors

CodeDescription
UNAUTHORIZEDMissing or invalid API key / JWT
TOKEN_EXPIREDJWT has expired
KEY_REVOKEDAPI key has been revoked
INSUFFICIENT_SCOPEKey does not have required permissions

Validation Errors

CodeDescription
INVALID_PARAMSRequest body failed validation
INVALID_FORMATUnsupported audio format
INVALID_URLSource URL is not reachable
DURATION_TOO_SHORTSegment duration below minimum (1 second)
DURATION_TOO_LONGSegment duration exceeds source length

Job Errors

CodeDescription
JOB_NOT_FOUNDJob ID does not exist
JOB_ALREADY_PROCESSINGJob cannot be modified while processing
JOB_FAILEDProcessing failed (check error.details)
DOWNLOAD_EXPIREDSegment download URL has expired

Billing Errors

CodeDescription
QUOTA_EXCEEDEDMonthly quota reached with no overage
PAYMENT_REQUIREDAccount has unpaid invoices
PLAN_NOT_FOUNDInvalid plan ID
ALREADY_SUBSCRIBEDActive subscription exists

File Errors

CodeDescription
FILE_TOO_LARGEFile exceeds plan's max file size
UNSUPPORTED_FORMATAudio format not supported
CORRUPT_FILEFile could not be decoded
DOWNLOAD_FAILEDCould not download from source URL

Error Details

Some errors include a details object with additional context:

{
"error": {
"code": "INVALID_PARAMS",
"message": "Validation failed",
"status": 422,
"details": {
"fields": [
{
"field": "segmentDuration",
"message": "Must be a positive integer"
},
{
"field": "outputFormat",
"message": "Must be one of: mp3, wav, flac, ogg, aac"
}
]
}
}
}