PHPackages                             dominicwatts/lightweight404 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. dominicwatts/lightweight404

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

dominicwatts/lightweight404
===========================

1.0.0(6y ago)00proprietaryPHPPHP ~5.6.0||~7.0.0||~7.1.0||~7.2.0||~7.3.0

Since Oct 13Pushed 6y ago1 watchersCompare

[ Source](https://github.com/DominicWatts/Lightweight404)[ Packagist](https://packagist.org/packages/dominicwatts/lightweight404)[ RSS](/packages/dominicwatts-lightweight404/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

Simple 404 Not Found Page
=========================

[](#simple-404-not-found-page)

Magento 2 simple 404 page.

Your store can return 404 pages for many reasons.

- Missing assets
- Bot traffic
- Malicious traffic
- Mistakes

404 page will load a lot of assets and therefore make many requests. On high traffic sites any of the above scenarios can impact load times.

This simplifies the layout of the 404 page but still returns the configured `Default Page` content in the admin

```
Store > Configuration > General > Web > Default Pages

```

Note: this extension includes some basic styling. Although you can either customise this or add styling in the CMS page. Whatever works for you.

Install instructions
====================

[](#install-instructions)

`composer require dominicwatts/lightweight404`

`php bin/magento setup:upgrade`

Usage instructions
==================

[](#usage-instructions)

Create CMS page for `404 Not Found`

Configure Default Page in the admin

```
Store > Configuration > General > Web > Default Pages

```

Content Example
---------------

[](#content-example)

css

```
@import url(http://fonts.googleapis.com/css?family=Roboto);

* {
    font-family: 'Roboto', sans-serif;
}

body {
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABZ0RVh0Q3JlYXRpb24gVGltZQAxMC8yOS8xMiKqq3kAAAAcdEVYdFNvZnR3YXJlAEFkb2JlIEZpcmV3b3JrcyBDUzVxteM2AAABHklEQVRIib2Vyw6EIAxFW5idr///Qx9sfG3pLEyJ3tAwi5EmBqRo7vHawiEEERHS6x7MTMxMVv6+z3tPMUYSkfTM/R0fEaG2bbMv+Gc4nZzn+dN4HAcREa3r+hi3bcuu68jLskhVIlW073tWaYlQ9+F9IpqmSfq+fwskhdO/AwmUTJXrOuaRQNeRkOd5lq7rXmS5InmERKoER/QMvUAPlZDHcZRhGN4CSeGY+aHMqgcks5RrHv/eeh455x5KrMq2yHQdibDO6ncG/KZWL7M8xDyS1/MIO0NJqdULLS81X6/X6aR0nqBSJcPeZnlZrzN477NKURn2Nus8sjzmEII0TfMiyxUuxphVWjpJkbx0btUnshRihVv70Bv8ItXq6Asoi/ZiCbU6YgAAAABJRU5ErkJggg==);
}

.error-template {
    padding: 40px 15px;
    text-align: center;
}

.error-actions {
    margin-top: 15px;
    margin-bottom: 15px;
}

.error-actions .btn {
    margin-right: 10px;
}

.message-box h1 {
    color: #252932;
    font-size: 98px;
    font-weight: 700;
    line-height: 98px;
    text-shadow: rgba(61, 61, 61, 0.3) 1px 1px, rgba(61, 61, 61, 0.2) 2px 2px, rgba(61, 61, 61, 0.3) 3px 3px;
}

```

CMS content example

```

                Not Found
                The page you requested was not found, and we have a fine guess why.
                If you typed the URL directly, please make sure the spelling is correct.
                If you clicked on a link to get here, the link is outdated.

                What can you do?
                Have no fear, help is near! There are many ways you can get back on track with Magento Store.
                Go back to the previous page.
                Follow these links to get you back on track!
                Store Home | My Account

```

Screenshot
----------

[](#screenshot)

404 Page - minimal layout

[![Screenshot](https://camo.githubusercontent.com/9f14d4f0b03686cea154358a0130a1d1cc66ae623e44e7de9a4ca6ef6af273c8/68747470733a2f2f692e736e6970626f6172642e696f2f4731416269302e6a7067)](https://camo.githubusercontent.com/9f14d4f0b03686cea154358a0130a1d1cc66ae623e44e7de9a4ca6ef6af273c8/68747470733a2f2f692e736e6970626f6172642e696f2f4731416269302e6a7067)

Developer Tools - minimal page response

[![Screenshot](https://camo.githubusercontent.com/20f734d95cc341014987acd30b61b754965ff4ff21a7a821d464d6d99e811896/68747470733a2f2f692e736e6970626f6172642e696f2f4564584476712e6a7067)](https://camo.githubusercontent.com/20f734d95cc341014987acd30b61b754965ff4ff21a7a821d464d6d99e811896/68747470733a2f2f692e736e6970626f6172642e696f2f4564584476712e6a7067)

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2452d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/44d79495721d844614b7004c5811ff2ab7cf15c9be3544000f7ee89f3e187de3?d=identicon)[DominicPixie](/maintainers/DominicPixie)

---

Top Contributors

[![DominicWatts](https://avatars.githubusercontent.com/u/7295705?v=4)](https://github.com/DominicWatts "DominicWatts (7 commits)")

### Embed Badge

![Health badge](/badges/dominicwatts-lightweight404/health.svg)

```
[![Health](https://phpackages.com/badges/dominicwatts-lightweight404/health.svg)](https://phpackages.com/packages/dominicwatts-lightweight404)
```

###  Alternatives

[elgentos/regenerate-catalog-urls

Regenerate Catalog URL Rewrites (products, categories, cms pages)

2832.6M](/packages/elgentos-regenerate-catalog-urls)[run-as-root/magento2-prometheus-exporter

Magento2 Prometheus Exporter

68353.9k](/packages/run-as-root-magento2-prometheus-exporter)[myparcelnl/magento

A Magento 2 module that creates MyParcel labels

1859.0k](/packages/myparcelnl-magento)[loki/magento2-components

Core module for defining Alpine.js components with advanced AJAX features

1010.0k22](/packages/loki-magento2-components)[magepal/magento2-form-field-manager

Customer and Address Form Fields Manager for Magento2

273.9k](/packages/magepal-magento2-form-field-manager)[mage-os/module-llm-txt

AI-powered LLMs.txt generation for Magento 2 / Mage-OS stores. Help AI systems understand your store with OpenAI-generated content.

233.3k](/packages/mage-os-module-llm-txt)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
