---
title: How to Create a Custom Error Page for SharePoint
description: Follow this step-by-step tutorial for creating a custom error page for a SharePoint 2010 web application.
image: https://www.codesigned.com/hubfs/Blog/FeaturedImage/CreateCustomError.png
---

![CreateCustomError.png](https://www.codesigned.com/hubfs/Blog/FeaturedImage/CreateCustomError.png)

Branding your digital workspace is essential to creating a company identity. This includes not just the functional pages, but even the error pages. SharePoint development can be a headache to get the hang of. To learn how to create custom error pages in SharePoint, follow this tutorial. 

 

To create a custom error page for SharePoint, in Windows Explorer, locate the following folder:

%systemdrive% \Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\LangID 

**Note: **

In this path, %systemdrive% represents the actual drive name of the drive on which the operating system is installed.

In this path, LangID represents the actual language ID of the language that you use. For example, 1033 is the language ID for U.S. English. 

 

     

# Step #1:  Create the custom HTML file:

1.  On the computer that is running SharePoint Server 2010, copy the Sps404.html file to a temporary folder. 

2.  Rename the Sps404.html file. For example, give the file the following name: Custom404.html

3.  Modify and design the new Custom404.html file to suit your needs for a custom 404 error message using notepad or an HTML editor.

4.  Copy the Custom404.html file to the %systemdrive% \Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\LangID folder.

 

   

# Step #2:  Run the following PowerShell commands from the SharePoint 2010 Management Shell:

```

   $webapp =Get-SPWebApplication http://<serverUrl>:<port>
   $webapp.FileNotFoundPage = "Custom404.html"
   $webapp.update()
   
```

 

 

# Step #3:  Verify that the property is set by running the following command:

```
(Get-SPWebApplication http://<serverUrl>:<port>).FileNotFoundPage 
            
```

 

 

**Additional Notes:**

In this code, <serverUrl> represents the actual URL of the Web application where you are setting the custom 404 error page. 

In this code, <port> represents the nonstandard port number, if any, that is assigned to the Web application. 

In this code, Custom404.html represents the actual name that you created for the custom HTML file.  

By default in SharePoint Server 2010, the FileNotFoundPage property is set to the "null" setting.

Enjoy!

 

**For more tricks like this one, make sure to subscribe to the [Codesigned blog](https://www.codesigned.com/blog/topic/design)! For a completely customized SharePoint experience, check out IntranetPro. **

[![Learn More](https://no-cache.hubspot.com/cta/default/426567/e4d0c1ee-2b50-4fef-b2b5-f7eae0555767.png)](https://cta-redirect.hubspot.com/cta/redirect/426567/e4d0c1ee-2b50-4fef-b2b5-f7eae0555767)

Related Content

 Explore Resources

<https://www.codesigned.com/blog/intranet-search-101>

[Intranet search 101: Getting smart about search](https://www.codesigned.com/blog/intranet-search-101)

 Your end-users expect a stellar search experience. They've learned to love search on sites like Google, Bing, Amazon, and Zillow. Unfortunately, ...

[Jordan Weaver](https://www.codesigned.com/blog/author/jordan-weaver)

 Mar 20

<https://www.codesigned.com/blog/your-intranet-needs-a-reboot-now-more-than-ever>

[Your Intranet Needs a Reboot Now More Than Ever](https://www.codesigned.com/blog/your-intranet-needs-a-reboot-now-more-than-ever)

 A decade ago, remote working was rare. Many organizations believed that remote workers were harder to manage, less effective, and too easily ...

[Jake Weaver](https://www.codesigned.com/blog/author/jake-weaver)

 Mar 20

<https://www.codesigned.com/blog/why-organizations-are-doubling-down-on-internal-crisis-communications-right-now>

[Why Organizations Are Doubling Down on Internal & Crisis Communications Right Now](https://www.codesigned.com/blog/why-organizations-are-doubling-down-on-internal-crisis-communications-right-now)

 Open, clear, concise communication is integral to the smooth functioning of an organization at the best of times, but never more so than during times ...

[Luke Warren](https://www.codesigned.com/blog/author/luke-warren)

 Mar 20

<https://www.codesigned.com/blog/one-key-lesson-from-the-covid-19-crisis>

[One Key Lesson From The COVID-19 Crisis](https://www.codesigned.com/blog/one-key-lesson-from-the-covid-19-crisis)

 A conversation between Jake Weaver, CEO of Codesigned, and Alison Davis, CEO of Davis & Company.

[Codesigned](https://www.codesigned.com/blog/author/codesigned)

 Mar 20

<https://www.codesigned.com/blog/sharepoint-framework-spfx-microsoft-bot-framework-integration>

[SharePoint Framework (SPFx): Microsoft BOT framework integration](https://www.codesigned.com/blog/sharepoint-framework-spfx-microsoft-bot-framework-integration)

 Download / Source code SPFX web part : https://github.com/get2pallav/BT/tree/develop

[Pallav Mathur](https://www.codesigned.com/blog/author/pallav-mathur)

 Mar 20

 Explore Resources

![](https://ws.zoominfo.com/pixel/613f8d72f25afa001adf105b)