agent_suggestion field with specific, actionable guidance
that an agent can follow without human intervention.
Error response format
Fields
| Field | Type | Purpose |
|---|---|---|
error | boolean | Always true for error responses |
error_code | string | Machine-readable error code for programmatic handling |
message | string | Human-readable description |
agent_suggestion | string | Actionable next step for AI agents |
Error codes
| Code | HTTP | Meaning |
|---|---|---|
app_not_found | 404 | Application number not in database |
examiner_not_found | 404 | Examiner name not found |
missing_api_key | 401 | No X-API-Key header provided |
invalid_api_key | 401 | Key not recognized |
revoked_api_key | 401 | Key has been revoked |
invalid_download_token | 401 | Download token expired or invalid |
token_job_mismatch | 403 | Download token issued for a different job |
Agent implementation pattern
agent_suggestion text is written so that an LLM agent can include it directly
in a response to the user.