# Errors

Application errors use this JSON format:

```json
{"code": "constant_error_code", "detail": "Variable human readable details"}
```

Use the stable `code` to decide how your application handles the failure. The `detail` is
developer-facing text for debugging; its wording can change and is not intended for end users.

:::caution

Do not parse or compare `detail` to identify an error. Branch on `code` instead.

:::

The REST reference lists the error codes for each operation. Financial and invoice responses also distinguish availability and generation status through HTTP status codes.
