Thanks to visit codestin.com
Credit goes to github.com

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.

No way to get HTTP response Reason Phrase from $http #5492

Closed
@gimmi

Description

@gimmi

As described in the subject, seems that there is no way to access HTTP reason phrase from $http results:

$http.get(/*...*/).then(function (ret) {
    // ret.status is available, but not ret.reasonPhrase
}, function (err) {
    // ret.status is available, but not ret.reasonPhrase
});

I know that the reasonPrase should only contain a human readable translation of the status code, but i have some service that uses it to return additional infos not found elsewhere. Can reason phrase be added to the returned object?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions