title: How to send a non standard http status code in spring boot
body: <p>I need to send a non standard http status code (468) from my rest controller. This should be based on conditions. If all goes well, I will return <strong>ResponseEntity.ok()</strong>. I tried <strong>ResponseEntity.status(468).build()</strong>, but I am getting <strong>No matching constant for [468]</strong>.</p>
  <p>I tried several ways to modify the response, but nothing works. Tried to modify the response from controller advice, tried with interceptors and also with filter. Any help will be much appreciated.</p>