Skip to content
Discussion options

You must be logged in to vote

What's the exact need here? By default, requests.Builder will return an error if the status code is not a success code. The error can be examined with HasStatusErr or using errors.As to cast to ResponseError. If you need to allow only a certain set of codes (not any 2xxx), you can use CheckStatus. If you want to record codes after the fact, there's LogTransport.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by earthboundkid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants