# MISSING_INDEX_HTML

index.html is missing.

- **HTTP class:** 422
- **Retryable:** no

## What happened

The site would have no `index.html` at the top level.

## Fix

Add `index.html` at the root, not inside a folder: send the contents of the build's output folder, not the folder itself.

## What to tell the user

Nothing.

## Agent hint

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

```text
Add index.html at the top level (not inside a folder), then finalize again.
```

## Related

- [`SERVER_CODE_NOT_ALLOWED`](https://carnival-staging.dev/docs/errors/SERVER_CODE_NOT_ALLOWED.md): Server code or build configuration is not allowed.
- [`INVALID_PATH`](https://carnival-staging.dev/docs/errors/INVALID_PATH.md): A path is invalid.

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