Custom or System-owned errors feature
DDDError now accepts error status from the developer system.
This is a very useful feature so clients or even final users may see an specific error name so they can handle as expected.
In the case of end-users, the developer could show the status name (e.g. FooIsNotOpened, NCORP-45123) so they can report it with the support/help-desk team.
In the other hand, in the case of clients (e.g. web, native mobile app), these status names may define specific behaviours when an error occurs. By using generic protocol-specific error status names (e.g. Internal Server Error, Bad Request), the client may not be able to react properly depending on the actual specific error.