Show error when normal user try to login in CP when I login to my Craft CMS website via a normal user that user doesn't have permission to login to the Control Panel, it displays some error like HTTP 403 – Forbidden – yii\web\ForbiddenHttpException.

This error is correct but I want to display some message instead of this error.
You are seeing this because you have 'devMode' =&gt; true, in your config/general try switching to false and should hit a 'user friendly' message