Hi @nditah this was great! Your app is awesome and I am trying to learn fastapi and python, so this was a great tutorial. I do have a question for you.
I understand that 303 is a redirect status code, but can you explain to me why it would be used in this case? Wouldn't it make more sense to use a status code 200? When I tried to update the status code to:
This doesn't work and when I add or update a todo it just takes me to a new empty page. Do you have any advice on how I would be able to get status 200 responses instead of 303? The 303 works perfect, but I am not sure I understand the reasoning behind it. Would you be able to explain that too?
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi @nditah this was great! Your app is awesome and I am trying to learn fastapi and python, so this was a great tutorial. I do have a question for you.
Most of the requests return a 303 status:
I understand that 303 is a redirect status code, but can you explain to me why it would be used in this case? Wouldn't it make more sense to use a status code 200? When I tried to update the status code to:
This doesn't work and when I add or update a todo it just takes me to a new empty page. Do you have any advice on how I would be able to get status 200 responses instead of 303? The 303 works perfect, but I am not sure I understand the reasoning behind it. Would you be able to explain that too?