title: ASP.NET MVC 3 Remote Validation set custom error message
body: <p>Is there any way to set different errors according with logic in MVC 3.0 remote validation</p>
  
  <pre><code>public ActionResult IsUserEmailExists(string email)
          {
              bool isExists = service.IsUserExists(email);
  
              if(isExists )
               //Set error message
               return Json(!isExists, JsonRequestBehavior.AllowGet);
              else if(something)
                //another logic
                //Set errror message
                return Json(something, JsonRequestBehavior.AllowGet);             
          }
  </code></pre>
  
  <p>By default Remote validation using only ErrorMessage value from attribute declaration</p>
  
  <pre><code>[Remote("IsUserEmailExists", "Account", ErrorMessage = "User with such email already exists")]
  </code></pre>
  
  <p>is there any way to change that behavior?</p>