Page - 404 Error

  1. Create a new page

    Create a new node of type Basic page

  2. Add content

    Use below sample code to create this page.

    <div class="error-page">
    <h1>ERROR 404</h1>
    <i class="fa fa-exclamation-triangle" aria-hidden="true"></i>
    <p>We are sorry, but the page you were looking for doesn't exist.</p>
    </div>
  3. Important

    When creating page, make sure you select Full HTML as Text format.

    You have now successfully created Error 404 (Page not found) page.

  4. Set this page as default Error 404 page

  5. Navigate to: Administration >> Configuration >> System

    admin/config/system/site-information

    And set this page as your Error 404 page and click Save Configuration button.