{"rule_id":"AB-149","category":"error_semantics","icon":"🚫","title":"Error response schemas","short_description":"4xx and 5xx error responses are declared with schemas.","user_value":"Agents need to know what errors look like to handle them gracefully instead of crashing.","wrong_example":"responses: { '200': { ... } } // no 4xx/5xx","right_example":"responses: { '400': { description: 'Invalid request', with a body schema referencing the shared Error object } }","effort_hint":"moderate","estimated_cost":"$0","severity":"high","pillar":"executability","version":"1.0.0","counted_in_score":true,"check":{"type":"semantic_validation","sources":["openapi"]},"fix":{"eligible":false,"type":"assisted","note":"Declare 4xx/5xx responses with content schemas and descriptions; consider RFC 9457 application/problem+json"},"checklist_anchor":"#AB-149","checklist_url":"/agent-readiness-checklist#AB-149","html_url":"/rules/AB-149","json_url":"/rules/AB-149.json","related_rules":[]}