ResponseStatusException
An exception that carries an HTTP status and reason, which Spring turns straight into a response. It's quick but puts HTTP details into the service.
An exception that carries an HTTP status and reason, which Spring turns straight into a response. It's quick but puts HTTP details into the service.