# INVALID_PATH

A path is invalid.

- **HTTP class:** 400
- **Retryable:** no

## What happened

A path breaks the path rules: letters, digits and `- _ . ~ /` only; relative (no leading `/`); no `..` segments; no dotfiles; at most 200 characters.

## Fix

Rename the file, and every link to it, to a valid relative path like `img/logo.webp`, and send it again.

## What to tell the user

Nothing.

## Agent hint

The exact `error.hint` text; Carnival fills each `<…>` for the call.

```text
<path> is invalid. Use relative paths like img/logo.webp: letters, digits, - _ . ~ /; no leading /, no .., no dotfiles; at most 200 characters.
```

## Related

- [`DUPLICATE_PATH`](https://carnival-staging.dev/docs/errors/DUPLICATE_PATH.md): A path appears more than once.
- [`DISALLOWED_FILE_TYPE`](https://carnival-staging.dev/docs/errors/DISALLOWED_FILE_TYPE.md): This file type is not allowed.

All error codes: [error codes](https://carnival-staging.dev/docs/errors.md)
