is there a way to set error codes for ErrorAction from YII2? For example i save data with a model and the save command will returns false. Then i would display a error message for the user so he can see there is a database problem.
At the moment, if the save command returns false, Yii shows an error page 404. But i think it must be error code 500.