More of a sanity check than开发者_如何学Python anything else.
Do browsers always use the last HTTP status code that I send from my script?
For instance if I sent a 200 and then send a 404, will all browsers correctly handle the page as 404?
The browser will only ever receive one. The HTTP protocol does not permit multiple status codes.
If your script is trying to send several, then it's up to the server-side framework to handle that so that only one gets sent. Exactly what happens is going to depend on the framework in question.
精彩评论