---
title: "Result codes"
description: "Reference table of every standardized failure and warning code returned by a PDF-PQS verifier."
---

> Documentation Index
> Fetch the complete documentation index at: https://pdf-pqs.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Result codes

Every compliant PDF-PQS verifier reports the same standardized error and warning codes. That way, whether your team uses the Rust CLI, a backend service, or a custom library, your application logic and UI messages can handle every outcome consistently.

The table below is generated automatically at build time from [Appendix B](https://pdf-pqs.org/specification/codes) of the specification.

## How result codes work

- **`E_` codes are failures.** Any failure code (on a signature or on the file) makes the overall verification result `invalid`.
- **`W_` codes are warnings.** Warnings never turn a valid document into `invalid`, but your verifier or UI must still show them (for example, letting a user know pages were edited after signing).
- **One failure per signature.** When checking a signature, the verifier stops at the first failure, emits that single `E_` code, and skips warnings for that signature.
- **Signature scope vs. file scope.** `E_PARSE` in step 1, `E_POLICY_UNAVAILABLE`, and `E_PQC_REQUIRED_MISSING` apply to the entire file (`fileCodes`). Every other code applies to a specific signature.
- **Forward compatibility.** Verifiers must never repurpose an existing code for a different error condition. If your app sees a new code added by a future version of the standard, treat any `E_` prefix as a failure and any `W_` prefix as a warning.

## Codes

## Overall file results

| Result | When it is returned |
|---|---|
| `valid` | Steps 1 to 11 pass for every PDF-PQS signature, no file-level failures occur, and every certificate chain ends at a configured trust anchor. |
| `valid-domain-only` | Steps 1 to 11 pass for every signature, and at least one chain ends at an issuer published in a domain's policy document (`W_DOMAIN_ONLY`). Do not display identity assurance claims from certificate policies for this result. |
| `invalid` | Any failure code (`E_*`) is reported for a signature or for the file. |
| `no-signature` | The file has no PDF-PQS signatures and step 11 passes with no failure codes. |

See [Verification flow](https://pdf-pqs.org/concepts/verification-flow) for a visual map showing which step produces each code.

Source: https://pdf-pqs.org/tools/result-codes/index.mdx
