You can just ignore requests in code:
[DefaultView("home")]
public object Get(HomeScenario request)
{
if (base.Request.PathInfo == "/favicon.ico")
return HttpError.NotFound(request.PathInfo);
var cacheKey = GetCacheKey ("home", request.Lang);
return base.Request.ToOptimizedResultUsingCache (base.Cache, cacheKey, () => {
var response = LoadJson<HomeScenarioResponse> (request.Lang, "home");
return response;
});
}
Otherwise you can register a CatchAll handler further up the Request Pipeline that handles unwanted requests, e.g:
this.CatchAllHandlers.Add((httpmethod, pathInfo, filepath) => {
if (pathInfo == "/favicon.ico")
return new NotFoundHttpHandler();
return null; //continue processing request
});