title: Return HTTP code 200 from Spring REST API
body: <p>I want to use this code to receive http link with values:</p>
  
  <pre><code>@PostMapping(value = "/v1/notification")
  public String handleNotifications(@RequestParam("notification") String itemid) {
      // parse here the values
      return "result successful result";
  }
  </code></pre>
  
  <p>How I can return http code <code>200</code> - successful response?</p>
  
  <p>And also for example if there is a code exception into code processing how can I return error <code>404</code>?</p>