This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
$http service: specification of status
in error case #11945
Closed
Description
https://docs.angularjs.org/api/ng/service/$http clearly states that the status
argument to the success
handler is between 200 and 299. In all other cases, the error
handler is called. However, there is no statement about the values that status
can assume within the error handler. I guess that it is either 0
(if no back-end response arrived, for whatever reason) or the HTTP status indicated by the back-end. I hope no other values are allowed (such as null
). Is that correct? Is that guaranteed? If it is, it should be documented, correct?
Thanks,
Jan-Philip