DPDK Architecture  ->  Library (v3.4.4)

Custom 404

In case anything goes wrong in your application or a page is not found, hydrate will handle it for you with a proper status code and an option to show your own custom 404 page.

import { initCustomError } from '@dpdk/library/utilities/hydrate';

initCustomError(<h1>This is our custom 404</h1>);

Note: The 404 page will receive data just like any other page except for the page data. So a default menu with glossary is still available.

Last modifiedMonday, August 30, 2021, 2:00:02 PM UTC
Last authorColin van Eenige
Commit IDfd08685