application/problem+json. Branch on code, display detail when useful, and log the request_id for support. The same ID appears in X-Request-Id. Validation errors can include an errors array with up to 20 entries, each with a dotted path and a message. Check the content type before parsing an error body.
GET /v1/me 401
invalid_request
HTTP 400. Correct the request usingdetail and any errors entries.
unauthenticated
HTTP 401. Check the authentication requirements.plan_required
HTTP 402. See your plan for API access.allowance_exceeded
HTTP 402. Read the remaining allowance and period end with GET /v1/usage.insufficient_credits
HTTP 402. Check available credits before trying again.spending_cap_exceeded
HTTP 402. Reduce the requested work or review the cap before retrying.insufficient_scope
HTTP 403. Use a key with the scope required by the operation.not_found
HTTP 404. Check the path or resource identifier.method_not_allowed
HTTP 405. Check the operation’s HTTP method.idempotency_in_progress
HTTP 409. Wait forRetry-After, then retry the same request with the same key.
cursor_expired
HTTP 410. Start again from the first page.payload_too_large
HTTP 413. Send a smaller JSON body.idempotency_key_reused
HTTP 422. Retry with the original input, or use a fresh key for a different request.rate_limited
HTTP 429. Wait forRetry-After before retrying.
internal_error
HTTP 500. Retry safe requests with bounded backoff. Keep the request ID if the error persists.service_unavailable
HTTP 503. Wait forRetry-After before retrying a safe request.