The easiest one would be by creating a template through a Block Element – Content Template.
After creating a template layout within the Block Element – Content Template, you then set it’s display rule location to 404 Template so the 404 page uses the template layout you’ve created.