What is the use of @responsestatus?
The status code is applied to the HTTP response when the handler method is invoked, or whenever the specified exception is thrown. It overrides status information set by other means, like ResponseEntity or redirect: . In the following application, we demonstrate the usage of the @ResponseStatus annotation.
DA: 38 PA: 89 MOZ Rank: 25