title: ASP.NET MVC3 HttpStatusCodeResult StatusDescription - Specified argument was out of the range of valid values
body: <p>For some reason I'm getting an error trying to return </p>
  
  <p><code>new HttpStatusCodeResult(500, statusDescription);</code></p>
  
  <p>In my MVC3 app. It blows up with the error</p>
  
  <pre><code>Specified argument was out of the range of valid values.
  Parameter name: value
  Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
  
  Exception Details: System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
  Parameter name: value
  
  Source Error:
  
  An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
  
  Stack Trace:
  
  [ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
  Parameter name: value]
     System.Web.HttpResponse.set_StatusDescription(String value) +4877926
     System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +785441
     System.Web.Mvc.Controller.ExecuteCore() +159
     System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +335
     System.Web.Mvc.&lt;&gt;c__DisplayClassb.&lt;BeginProcessRequest&gt;b__5() +62
     System.Web.Mvc.Async.&lt;&gt;c__DisplayClass1.&lt;MakeVoidDelegate&gt;b__0() +20
     System.Web.Mvc.&lt;&gt;c__DisplayClasse.&lt;EndProcessRequest&gt;b__d() +54
     System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +453
     System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously) +371
  
  
  Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.372 
  </code></pre>
  
  <p>If I change my result to return <code>new HttpStatusCodeResult(500, "statusDescription");</code></p>
  
  <p>It will then work fine, is there some kind of length restriction on Status Description?</p>