> For the complete documentation index, see [llms.txt](https://docs.hostinger.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hostinger.com/websites/error-pages.md).

# Error Pages

Customize the pages visitors see on errors like 404 and 500.

## Common HTTP error codes

| Code  | Error                 | When it happens                        |
| ----- | --------------------- | -------------------------------------- |
| `400` | Bad Request           | Server couldn't understand the request |
| `401` | Unauthorized          | Authentication required                |
| `403` | Forbidden             | Access denied                          |
| `404` | Not Found             | Page or file doesn't exist             |
| `500` | Internal Server Error | Server-side error                      |

The one you'll actually want to customize is **404**.

## Customize in hPanel

1. Open your website dashboard.
2. Go to **Website** → **Error Pages** in the sidebar.
3. Select the error code (e.g., `404`) to open its editor.
4. Edit the HTML.
5. Click **Save**.

## Customize via `.htaccess`

In `public_html/.htaccess`:

```apacheconf
ErrorDocument 404 /404.html
ErrorDocument 500 /500.html
ErrorDocument 403 /403.html
```

Create the corresponding HTML files in `public_html`.

### Example 404 page

`/public_html/404.html`:

```html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Page Not Found</title>
</head>
<body>
  <h1>Page Not Found</h1>
  <p>Sorry, the page you're looking for doesn't exist.</p>
  <a href="/">Go back to home</a>
</body>
</html>
```

In `.htaccess`:

```apacheconf
ErrorDocument 404 /404.html
```

## Tips for a good 404 page

* Include site navigation or a search bar.
* Link back to the homepage.
* Keep it friendly.
* Optionally surface popular or recent content.

***

*Last updated: July 22, 2026*
