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
Description
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?