Operations
3 min
HTTP Status Codes & Connectivity Self-Check
Diagnose authentication, quota, rate-limit, and network issues on Starlight AI in under a minute.
1. Common HTTP Status Codes
• 401 Unauthorized — Missing, mistyped, paused, or expired API key. Verify your key status in Key Stats or Account Portal. • 402 Payment Required / Quota Exceeded — The key reached its total or daily USD spend cap. Redeem a new plan or raise your limit. • 429 Too Many Requests — Concurrent request limit reached. Reduce parallel subagents or add exponential backoff. • 502 / 504 Bad Gateway — Transient upstream timeout. Retry automatically after 2–5 seconds.
2. 10-Second Connectivity Self-Check
Run either curl test below against https://api.starlight-demo.dev to verify TLS, DNS, and API key authentication.
Test Anthropic Messages Endpoint
curl -sS https://api.starlight-demo.dev/api/v1/messages \
-H "x-api-key: YOUR_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "content-type: application/json" \
-d '{"model":"claude-haiku-5-5","max_tokens":32,"messages":[{"role":"user","content":"ping"}]}'
Test OpenAI Responses Endpoint
curl -sS https://api.starlight-demo.dev/openai/v1/responses \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"gpt-6.2-sol","input":"ping"}'
If curl succeeds but your IDE fails, check that your IDE does not inject a conflicting corporate proxy.