You can add keys to spweb propertybag trough a feature using CAML:
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<PropertyBag ParentType="Web" RootWebOnly="False">
<Property Name="MyCustomProperty"
Type="string" Value="MyValue" />
</PropertyBag>
</Elements>
The property is…
Read more »
If you are working with SharePoint 2010, see this article by Todd Carter:
An Expected Error Has Occurred
Mike has also written a nice article of the other options:
SharePoint 2010 Custom Error Messages for Public Facing Deployments
SharePoint doesn’t have an out-of-the-box support for custom error pages. Or at least it’s a little bit problematic to implement custom error pages…
Read more »