---
title: "file. diagnostics"
description: "Owner: the runtime spec (defs/runtime.ts). The status is the code's own; the exit comes from its category (CATEGORIES). A warning or info code never sets the status or the exit."
order: 20
---

# `file.*` diagnostics

Owner: the runtime spec (`defs/runtime.ts`). The status is the code's own; the exit comes from its category (`CATEGORIES`). A warning or info code never sets the status or the exit.

| Code | Category | Severity | Status | Exit | Retry | Fix | Args |
|---|---|---|---|---|---|---|---|
| <a id="file.hash_mismatch"></a>`file.hash_mismatch` | input | error | 400 | 2 | no | — | `expected`, `actual` |
| <a id="file.not_readable"></a>`file.not_readable` | not_found | error | 404 | 3 | no | — | — |
| <a id="file.ticket_invalid"></a>`file.ticket_invalid` | policy | error | 403 | 4 | no | — | — |
| <a id="file.upload_denied"></a>`file.upload_denied` | policy | error | 403 | 4 | no | — | — |
| <a id="file.upload_invalid"></a>`file.upload_invalid` | input | error | 400 | 2 | no | — | `field` |
