While checking out logs for a production app I noticed many failed HTTP requests with responses containing the status codes of 0 and -1. What is the difference between the status codes 1 and 0?
I know these are not 'real' status codes as per the http spec so I was trying to find the difference between these codes so I could at least notify the user that something is wrong with a message like 'Unable to connect to server' or something similar.
Angular.io seems to be devoid of documentation about these but I was able to find this on the legacy angular documentation:
Also, status codes less than -1 are normalized to zero. -1 usually means the request was aborted, e.g. using a config.timeout
Does the same also apply to the newer versions of Angular? I am using Angular 4.0.1.