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.

1 Answer 1


You are seeing this because you have 'devMode' => true, in your config/general try switching to false and should hit a 'user friendly' message


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.