Is there a way in micronaut to throw an exception that will specify the error code for the response, in the same way we can do in springboot:
throw new ResponseStatusException(HttpStatus.FORBIDDEN)
or do we always have to implement our own exception handler?
I would rather not have to implement exception handers just to be able to return a 400 or 403 response.