To use custom error pages on 000webhost, you need to create .htacces file and place it in public_html directory. In .htacces file you write:
ErrorDocument 403 /your403-error-file.php
ErrorDocument 404 /your404-error-file.php
ErrorDocument 500 /your500-error-file.php (or whatever error...