Skip to main content

VIUCraft Documentation

Error Codes

On This Page

Complete reference for VIUCraft API error responses.

Error Response Format

All errors return a JSON response:

JSON
{
  "error": "error_code",
  "message": "Human-readable description",
  "details": {}
}

HTTP Status Codes

4xx Client Errors

CodeErrorDescription
400bad_requestInvalid request format or parameters
401unauthorizedMissing or invalid API key
403forbiddenAPI key revoked or insufficient permissions
404not_foundImage or resource not found
413payload_too_largeUploaded file exceeds size limit
415unsupported_mediaFile format not supported
422invalid_operationInvalid transformation parameters
429rate_limitedToo many requests

5xx Server Errors

CodeErrorDescription
500internal_errorUnexpected server error
502bad_gatewayUpstream service unavailable
503service_unavailableService temporarily unavailable

Common Error Scenarios

Invalid API Key

JSON
{
  "error": "unauthorized",
  "message": "Invalid API key provided"
}

Image Not Found

JSON
{
  "error": "not_found",
  "message": "Image not found"
}

Rate Limited

JSON
{
  "error": "rate_limited",
  "message": "Rate limit exceeded",
  "retry_after": 60
}

Was this helpful?

On This Page