Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Error response format and codes.
type
{ "type": "https://docs.bedrock.cv/errors/validation", "title": "Validation error", "status": 400, "detail": "One or more request fields are invalid.", "code": "VALIDATION_ERROR", "requestId": "req_01JABCD123", "errors": { "overlay_id": ["Required field"] } }
title
status
detail
code
requestId
errors
/errors/validation
VALIDATION_ERROR
/errors/authentication
UNAUTHORIZED
/errors/insufficient-credits
INSUFFICIENT_CREDITS
/errors/authorization
FORBIDDEN
/errors/not-found
NOT_FOUND
/errors/rate-limit
RATE_LIMITED
response = requests.post(url, headers=headers, json=data) if response.status_code >= 400: error = response.json() if error["code"] == "RATE_LIMITED": time.sleep(int(response.headers.get("Retry-After", 60))) retry() elif error["code"] == "VALIDATION_ERROR": fix_request(error["errors"]) elif error["code"] == "INSUFFICIENT_CREDITS": top_up_credits() else: raise Exception(error["detail"])
X-Request-Id: req_01JABCD123