I have a custom pipeline set up in web.config to handle processing of 403 & 404 messaging and behavior. The code looks like this...
public class NotFoundProcessor : Sitecore.Pipelines.HttpRequest.HttpRequestProcessor
{
public override void Process(Sitecore.Pipelines.HttpRequest.HttpRequestArgs args)
{
//handle 404 & 403 processing of the requested item
}
}
It works well for any "page" that's requested.
However, Media Library items don't seem to be handled by that pipeline. I found this text in http://sdn.sitecore.net/upload/sitecore6/handling_http_404_a4.pdf
If IIS uses ASP.NET to process a request, and no processor aborts the httpRequestBegin pipeline, and the requested URL does not correspond to a Sitecore media item, a content item within the context site, or a file on disk , then Sitecore activates the URL specified by the value attribute of the /configuration/sitecore/settings/setting element in web.config with name ItemNotFoundUrl.
Which indicates media items are handled differently, but I can't find any references to capturing media item requests in the pipeline. Is there a way to do this, or another workaround to allow my custom 403/404 to process media items?
Thanks, Thad