Implementation of Error 404 message for CLI and AJAX also.