title: Spring @RequestParam with a value/name of "status"
body: <p>I am running a Spring boot MVC application, in my controller I have a @RequestParamter with a value of "status". When I hit this method through a RequestMapping (eg <a href="http://localhost:8080/pathToMethod?status=someStatus&amp;otherParam=aThing&amp;status=anotherStatus" rel="nofollow noreferrer">http://localhost:8080/pathToMethod?status=someStatus&amp;otherParam=aThing&amp;status=anotherStatus</a>)</p>
  
  <pre><code>@RequestMapping(method = RequestMethod.GET, value ="pathToMethod")
  public responseType methodName(
  @RequestParam(value = "otherParam", required = false) List&lt;String&gt; param, 
  @RequestParam(value = "status", required = false) List&lt;String&gt; status, 
  HttpServletRequest request, HttpServletResponse response){
      //code here 
  }
  </code></pre>
  
  <p>It fails with following error:</p>
  
  <blockquote>
    <p>Field error in object 'modelAndView' on field 'status': rejected value
    [Soemthing]; codes
    [typeMismatch.modelAndView.status,typeMismatch.status,typeMismatch.org.springframework.http.HttpStatus,typeMismatch];
    arguments
    [org.springframework.context.support.DefaultMessageSourceResolvable:
    codes [modelAndView.status,status]; arguments []; default message
    [status]]; default message [Failed to convert property value of type
    [java.lang.String] to required type
    [org.springframework.http.HttpStatus] for property 'status'; nested
    exception is
    org.springframework.core.convert.ConversionFailedException: Failed to
    convert from type [java.lang.String] to type
    [org.springframework.http.HttpStatus] for value 'Soemthing'; nested
    exception is java.lang.IllegalArgumentException: No enum constant
    org.springframework.http.HttpStatus.Soemthing]</p>
  </blockquote>
  
  <p>Is there any way to bypass Springs default handling of the "status" parameter so that it does not automatically try to convert it to a HttpResponse?</p>
  
  <p><a href="https://stackoverflow.com/questions/43180582/cant-pass-status-as-httpparameter-to-spring-boot-mvc-application/50904209#50904209?newreg=7903147233e04fc1bcbade63c688f6f1">Link to similar issue</a></p>