title: ActionFilterAttribute redirect to action method with parameter
body: <p>I have made a custom access checking ActionFilterAttribute which I want to redirect to an error page if they do not have sufficient access. Here is what I have so far.</p>
  
  <pre><code>RouteValueDictionary routeValues = new RouteValueDictionary(new {
                  action = "Error",
                  controller = "Home",
                  error = new Error(HttpStatusCode.Unauthorized, "You do not have sufficient access to complete your request.", (HttpContext.Current != null ? HttpContext.Current.Request.UserHostAddress : ""), DateTime.Now)
              });
              filterContext.Result = new RedirectToRouteResult(routeValues);
  </code></pre>
  
  <p>Here is the error page action method</p>
  
  <pre><code>public ActionResult Error(Error error)
  </code></pre>
  
  <p>However when the route redirects to the action method, the 'error' paramater is null, how do I do this without the paramater being null?</p>