PrepGenAICerts

Error-Type Taxonomy: Transport, Request, Parsing, Model-Output, Tool-Loop

Core

Identify the type of a Claude application error · Difficulty 2/5

0%
error-typesdebuggingintegration-layermodel-output

Explanation

The Five Failure Buckets

Failures in a Claude application fall into recognizable buckets, and the bucket dictates the fix:

Failure typeWhere it livesSignal
Transport/HTTPIntegration layer429 rate limit, 529/5xx overload, timeouts
Request errorIntegration layer400 bad request, 401 auth, schema/max_tokens mistakes
Parsing/validationIntegration layerCode throws when reading Claude's output (bad JSON, missing field)
Model-output errorModel outputWell-formed but *wrong*: hallucinated fact, missed instruction, wrong format
Tool-loop errorIntegration ↔ modelWrong tool chosen, malformed arguments, tool result not fed back correctly

The Core Discipline

Three of the five buckets live squarely in the integration layer (your code, request, and parsing), one lives in the model's actual output, and tool-loop errors straddle both. The discipline that matters most: don't "fix" the prompt when the bug is in your code, and don't patch code when the model output is the problem. Misclassifying the bucket sends the fix to the wrong layer entirely.

Common exam traps

  • A crash while reading the response (e.g., json.loads fails) is an integration-layer parsing bug, not a model quality problem -- the model may have returned reasonable text your parser didn't tolerate. Add defensive parsing before assuming the model is wrong.
  • Treating a well-formed-but-wrong answer as a parsing bug, or a genuine parsing exception as a sign the model hallucinated -- the fix lives wherever the failure signal actually points, not wherever is easiest to blame.

Key Takeaways

  • Five recognizable failure buckets: transport/HTTP, request error, parsing/validation, model-output, and tool-loop
  • Transport, request, and parsing errors live in the integration layer; model-output errors are well-formed but wrong
  • Tool-loop errors straddle the integration layer and the model's tool choices/arguments
  • Don't fix the prompt when the bug is in your code, and don't patch code when the model output is the problem
  • A JSON parse crash on a successful response is an integration-layer bug, not evidence the model is wrong

Glossary Terms

Related Concepts

PrepGenAICerts.com is an independent third-party exam-prep platform for the Claude Certified Architect (CCA-F) certification. We are not affiliated with, endorsed by, or acting on behalf of Anthropic PBC.

Note: New premium upgrades are temporarily paused while we resolve an issue with our payment provider. Existing premium members retain full access.