Correcting match behavior of 404 exception message.