Custom yii2 error 404

Some help, how can set custom error 404 en yii2?

You can edit the views\site\error.php

thanks, but i need custom view por only 404 erros, this is a general view or i’m wrong??

There are 3 variables in error view: $name, $message, $exception

404 is $exception->statusCode. In that logic you can design your view. Hope this helps.