# `failure.code_format`

Failure code is not lower_snake_case.

Area 4, [Failures](../topics/failures.md); not declinable; the next step is usually the agent's.

```jadpo
type Missing = Failure {
    kind: FailureKind.not_found
    code: "Not Found!"
}
```

```text
error: The code `Not Found!` isn't lower_snake_case
 --> main.jadpo:3:11
  |
3 |     code: "Not Found!"
  |           ^^^^^^^^^^^^ not lower_snake_case
  reason: A failure's code is what clients branch on and translate by, so it is lower_snake_case, like a failure's name turned into one.
  next: Write `"not_found"` (agent)
  rule: failure.code_format
  help: https://jadpo.dev/docs/errors/failure.code_format

check failed: 1 error, 1 file
```
