Bold VideoDocs

Errors

Error format and status codes

Errors come back with an appropriate HTTP status code and a JSON body:

{
  "error": "Unauthorized",
  "status": 401,
  "timestamp": "2026-07-10 08:39:57.287380Z"
}

Some endpoints include additional context (for example a message or field-level details on validation errors). The shape above is the guaranteed baseline.

Status codes

CodeMeaningTypical cause
200OK
201CreatedResource created (e.g. viewer, post)
400Bad RequestMalformed JSON or invalid parameters
401UnauthorizedMissing or invalid API key
403ForbiddenKey is valid but not allowed to do this
404Not FoundWrong ID, or the resource isn't visible to the API (e.g. a private video)
422Unprocessable EntityValidation failed: check the response body
429Too Many RequestsSlow down; retry with backoff
5xxServer errorRare; safe to retry with backoff

Handling errors well

  • Retry 429 and 5xx with exponential backoff; treat 4xx (except 429) as bugs to fix, not transient failures.
  • Don't parse error strings: branch on the status code.
  • A 404 on a video you know exists usually means it's private or the ID belongs to another channel.

The SDK throws typed errors carrying the status code, so you can handle these cases without touching raw responses.

On this page