> ## Documentation Index
> Fetch the complete documentation index at: https://docs.khanhng.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 4.5 Error Responses

FastAPI returns a `detail` field for explicit HTTP errors. Request validation uses FastAPI's standard HTTP 422 validation detail structure. The generated operation pages list each route's declared responses.

| Status | Current cause | Client action |
| - | - | - |
| 400 | Invalid decision, incompatible order amount or currency, missing or invalid evidence, upload metadata mismatch, or invalid Stripe signature. | Correct the request or file. |
| 401 | Missing or invalid Entra token on a protected route. | Obtain a valid token. |
| 403 | Authenticated caller lacks an allowed role. | Check the assigned role. |
| 404 | Order, claim, document, or evidence content is absent or hidden by ownership checks. | Check the identifier and access. |
| 409 | Duplicate test order, upload count limit, claim state conflict, unavailable assessment, or conflicting review decision. | Refresh state before retrying. |
| 422 | Request fields or path/query values fail validation. | Correct the invalid values. |
| 502 | The claim submission route could not start its Durable workflow. | Check the Functions service and retry after the cause is resolved. |

The current FastAPI routes do not implement an HTTP 429 monthly quota response or a single cross-service error code catalog. Upstream service failures are not uniformly mapped to a stable client response.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.