Add custom 404 error page

Added implementation for Custom404Error page with JSON response.