-
Create a new page
Create a new node of type Basic page
-
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> -
Set this page as default Error 403 page
Important
When creating page, make sure you select Full HTML as Text format.
You have now successfully created Error 403 (Access denied) page.
Navigate to: Administration >> Configuration >> System
admin/config/system/site-information
And set this page as your Error 403 page and click Save Configuration button.