1 min readSep 23, 2019
Thanks for your feedback. I would rather not mix the status codes into the services directly as these are related to HTTP layer only. I prefer to map either generic or specific errors into particular status codes. I want to write a Micronaut version of this post soon where the difference between service and controller will be very small and the status codes will only appear as annotations.