stefanos90 Posted October 9, 2020 Share Posted October 9, 2020 Today I was talking about a request with my team. One member suggested to use if response.ok: I referred to the w3schools docs and the description of the "ok" was incorrect. At w3schools is mentioned: "ok: Returns True if status_code is less than 200, otherwise False" The correct use from the official documentation mention: Returns True if status_code is less than 400, False if not. Link to comment Share on other sites More sharing options...
Funce Posted October 14, 2020 Share Posted October 14, 2020 Hey there! Good find on that one, could you use the "Report Error" at the bottom of the page with a description of this, and it'll make its way to the developers. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now