---
title: "doc. diagnostics"
description: "Owner: the catalog spec (defs/catalog.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: 16
---

# `doc.*` diagnostics

Owner: the catalog spec (`defs/catalog.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="doc.decode"></a>`doc.decode` | schema | error | 400 | 2 | no | — | `path`, `expected`, `got` |
| <a id="doc.file_unknown"></a>`doc.file_unknown` | schema | error | 400 | 2 | no | yes | `path`, `near` |
| <a id="doc.id_duplicate"></a>`doc.id_duplicate` | schema | error | 400 | 2 | no | — | `id`, `paths` |
| <a id="doc.id_reused"></a>`doc.id_reused` | schema | error | 400 | 2 | no | — | `id`, `artifact` |
| <a id="doc.id_unknown"></a>`doc.id_unknown` | reference | error | 400 | 2 | no | — | `path`, `id` |
| <a id="doc.non_integer_number"></a>`doc.non_integer_number` | schema | error | 400 | 2 | no | — | `path` |
| <a id="doc.unknown_field"></a>`doc.unknown_field` | schema | error | 400 | 2 | no | yes | `path`, `near` |
