Wrote an article
https://dev.to/anirbmuk/global-error-page-in-angular-3744