But this means you must replicate all the logic to set status code, set message... You could optionally extensd CustomerNotFoundException from NotFoundException.

But anyway, the approach taken by this module is evne worse imho.