Page - 403 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">
    <div class="error-page">
    <h1>Error 403 - Access denied</h1>
    <i class="fa fa-exclamation-triangle" aria-hidden="true"></i>
    <p>We are very sorry, but you do not have access to this page.</p>
    </div>
  3. Important

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

    You have now successfully created Error 403 (Access denied) page.

  4. Set this page as default Error 403 page

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

    admin/config/system/site-information

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