When errors occur, the site should respond with a specifically designed result that is helpful to the user without revealing unnecessary internal details. So if attacker passes the not existent URL, instead of displaying browser error message, it will redirect to custom error page.(Fig5 and 6)
Improper Error Handling