You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
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?
The text was updated successfully, but these errors were encountered:
I believe that there was a PR for this but I can't find it now.
The PR changed a ton of stuff in http and we weren't happy about that.
If someone can create a PR with minimal changes to http/httpBackend then we'll accept it, otherwise I find it hard to justify big code changes for this obscure feature.
Shouldn't this be as easy as adding the (properly parsed) statusText to the completeRequest() call in $httpBackend. Then in $http we would need to just add the additional parameters to both done() and resolvePromise().
One a site note, should the signatures of these functions be made more consistent? Should it always be (status, statusText, response, headers)?
As described in the subject, seems that there is no way to access HTTP reason phrase from $http results:
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?The text was updated successfully, but these errors were encountered: