-
-
Notifications
You must be signed in to change notification settings - Fork 984
Set error codes on all errors #1711
Copy link
Copy link
Closed
Labels
enhancementThis change will extend Got featuresThis change will extend Got featuresgood for beginnerThis issue is easy to fixThis issue is easy to fix✭ help wanted ✭
Metadata
Metadata
Assignees
Labels
enhancementThis change will extend Got featuresThis change will extend Got featuresgood for beginnerThis issue is easy to fixThis issue is easy to fix✭ help wanted ✭
What would you like to discuss?
On HTTPErrors the statusCode of the response is not exposed directly. You have to go through the HTTPError.response to get the statusCode
I would've expected the statusCode to be directly exposed on the HTTPError or otherwise set as the value of the
codeproperty, but neither is trueIs that as expected or is this a bug?
Checklist