I would like to introduce a HEAD Web API endpoint that will send 200 if a resource exists or 404 if it doesn't.
HEAD api/resource/{id}
How this can be handled in AngularJS $http.head() without the need of boiler plate code to check the status so it returns true or false? Or is it that 200 will be considered success and 404 failure? Any help is appreciated!
Thanks in advance!
Michail