Errors
Canonical API error codes and response format
By YT2Text Team • Published February 1, 2025 • Updated February 23, 2026
Errors
Most failures use a stable envelope:
{
"success": false,
"error": {
"code": "FEATURE_NOT_AVAILABLE",
"message": "Feature unavailable on current plan",
"details": {}
}
}
Common error codes
- – malformed payload or validation error
INVALID_REQUEST
- – missing/invalid credentials
UNAUTHORIZED
- /
INVALID_KEY
/INVALID_API_KEY
– key does not exist, malformed, or revokedKEY_NOT_FOUND
- – authenticated user lacks permission for this route
FORBIDDEN
- – too many requests in current window
RATE_LIMIT_EXCEEDED
- – daily/plan quota is exhausted
QUOTA_EXCEEDED
- – feature blocked for plan
FEATURE_NOT_AVAILABLE
- – unknown job id
JOB_NOT_FOUND
- – result not ready yet
JOB_NOT_COMPLETED
- – job failed after processing
JOB_FAILED
- – unknown batch id
BATCH_NOT_FOUND
- – internal usage/limit accounting failure
LIMITS_ERROR
- – list/filter retrieval failure
LIST_ERROR
- – unable to assemble result payload
RESULTS_ERROR
HTTP status mapping
- 400/422: request/validation errors
- 401: missing/invalid key
- 403: permission denied
- 404: missing job/batch/resource
- 409: resource state invalid for requested action (for example result before completion)
- 429: throttled
- 500: unexpected internal failure