开发者

What is the code for a properly loaded page?

开发者 https://www.devze.com 2023-02-20 02:24 出处:网络
There are error codes when something bad happens to a page but there is also a code when it loads correctly.

There are error codes when something bad happens to a page but there is also a code when it loads correctly.

What browser code for a page when it loads like it shoul开发者_如何学Cd?


It should be HTTP code 200 ("Ok"). NB: This is on http level and has nothing to do with html. It only tells you that the requested content has been accessed correctly.

You can have a look at the RFC for the different HTTP codes. http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html


Usually the code returned by the server is 200.

However, the server might also return 304 if the file was not modified since it was last requested.

The details are here: W3 RFC 2616


HTTP: 200 is the standard code. Reference here.


You can take a look at here for details on all codes.

In addition to 200, there are others that signal positive response.

0

精彩评论

暂无评论...
验证码 换一张
取 消