'How to send a non standard http status code in spring boot
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 ResponseEntity.ok(). I tried ResponseEntity.status(468).build(), but I am getting No matching constant for [468].
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.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
