What is the correct url to request the 404 page?

Yes this this doesn’t work when you have custom permalinks enabled. See the red warning box on the page you linked:

WARNING: If you are using custom permalink, the trick below does not work, see this: http://core.trac.wordpress.org/ticket/7592.

The trac ticket was closed as invalid so doesn’t look like this will change.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)