audit_error_handling
Audit a code snippet for common HTTP error-handling anti-patterns like manual status mutations, unhandled raw errors, and missing headersSent guards. Get a fast pattern-based diagnostic check.
Instructions
Performs a lightweight heuristic audit of a code snippet for common HTTP error handling anti-patterns (such as manual status/json mutations, unhandled raw errors, and missing headersSent guards). Note: This is a fast pattern-based diagnostic check, not a full AST compiler or AI replacement.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"code": "<code>"
},
"name": "audit_error_handling"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Source code snippet to audit for HTTP error anti-patterns |