properties.Status = SPEventReceiverStatus.CancelWithRedirectUrl; properties.RedirectUrl = “/_layouts/myCustomErrorPage.aspx”;