title: How to Get failed notification from client to server for WebAPI call in MVC4
body: <p>I am pretty new in WebApi and i am stuck with the following scenario , Please correct me if i am wrong - </p>
  
  <p>I am developing an API(JSON result) which will be consumed by Mobile devices. Below is my code  -</p>
  
  <pre><code>public HttpResponseMessage GetAllRecords(HttpRequestMessage request,string param1, string param2, string param3)
  {
  
       var result=// pulling records from database ;
  
  
       return request.CreateResponse(HttpStatusCode.OK, result);
  
  }
  </code></pre>
  
  <p>In my scenarios i want a <strong>SUCCESS</strong> message from <strong>Mobile devices(Client)</strong> so that i can update my database field i.e <code>IsSync=true</code> and if something went wrong i will keep <code>IsSync= false</code>.
  But, i don't want mobile device to call separate API for sending Response Code i.e <strong>SUCCESS or FAIL</strong>. I want to track it at SERVER side only. 
  Clients will get the response IF <strong>SUCCESS</strong> then i will update my DB else i will leave the fields as it is.</p>
  
  <p>Please help me with the IDEAL Scenarios to achieve the desired result.</p>
  
  <p>Hope i have make this clear to you guys :)</p>
  
  <p>Thanks in Advance </p>
  
  <p>Amod</p>