Jump to content

Python w3schools wrong documentation

Recommended Posts

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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...