i have an HTML with 2 ng-includes. Consider if one of the ng-include src is not present in the server. as of now it would just load blank html and in the browser console it
To handle this kind of situations you could use http interceptors (find the docs here: $http).
Interceptor has to catch the 404 response, load the 404.html page from your server and set it as a data for the initial response along with the status code 200.
I've created a project that shows how to solve it.
Repository: https://github.com/matys84pl/angularjs-nginclude-handling-404/
Take a closer look at the main.js file.