@angelov Hi Dejan, this post is very well written. I would like to know what you think about using Http-related concepts like the StatusCodes within your domain layer. I like your approach but I'm not sure about mixing.
If an Exception is thrown while services are called via CLI then it would not know about StatusCodes but rather ExitCodes.
@dazz Hey, for mixing - do you mean applying the specific attributes on the (domain) exception classes, or making the attributes related to a HTTP status code?