Use Kernel middleware and try catch error 404
Merge