Skip to content
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
@jgehrcke

Description

@jgehrcke

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions