🚫
AB-149
Error response schemas
🚫 Error Semantics
Pillar: Executability
Moderate effort
Severity: high
Est. cost: $0
Gap: semantic
Fix: assisted
What it means
4xx and 5xx error responses are declared with schemas.
Why it matters
Agents need to know what errors look like to handle them gracefully instead of crashing.
✗
What's wrong
responses: { '200': { ... } } // no 4xx/5xx
✓
What's right
responses: { '400': { description: 'Invalid request', content: { 'application/json': { schema: { $ref: '#/components/schemas/Error' } } } } }
Check this rule on your site
Enter your URL to check just this one rule (AB-001).
Machine-Readable
This rule is also available as JSON: /rules/AB-149.json
Explore More
-
All Rules
Browse the complete rules catalog
-
Agent Guide
Learn how to fix this rule
-
Blog
Related articles on agent readiness