📄 ref_httpmessages.asp@output=print
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-US" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>HTTP Messages</title>
<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta name="Keywords" content="xml,tutorial,html,dhtml,css,xsl,xhtml,javascript,asp,ado,vbscript,dom,sql,colors,soap,php,authoring,programming,training,learning,beginner's guide,primer,lessons,school,howto,reference,examples,samples,source code,tags,demos,tips,links,FAQ,tag list,forms,frames,color table,w3c,cascading style sheets,active server pages,dynamic html,internet,database,development,Web building,Webmaster,html guide" />
<meta name="Description" content="Free HTML XHTML CSS JavaScript DHTML XML DOM XSL XSLT RSS AJAX ASP ADO PHP SQL tutorials, references, examples for web building." />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "../../https@ssl./default.htm" : "../../www./default.htm");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-3855518-1");
pageTracker._initData();
pageTracker._trackPageview();
</script>
</head>
<body>
<p>From <b>http://www.w3schools.com</b> (Copyright Refsnes Data)</p>
<h1>HTTP Status Messages</h1>
<a href="ref_urlencode.asp"><img border="0" src="../images/btn_previous.gif" width="100" height="20" alt="Previous" /></a>
<a href="default.asp"> <img border="0" src="../images/btn_next.gif" width="100" height="20" alt="Next" /></a>
<hr />
<p class="intro">When a browser requests a service from a web server, an error might occur.</p>
<p class="intro">This is a list of HTTP status messages that might be returned:</p>
<hr />
<p><b>1xx: Information</b></p>
<table class="ex" cellspacing="0" border="1" width="100%" cellpadding="3">
<tr>
<th align="left" width="40%">Message:</th>
<th align="left" width="60%">Description:</th>
</tr>
<tr>
<td valign="top">100 Continue</td>
<td valign="top"> Only a part
of the request has been received by the server, but as long as it has not
been rejected, the client should continue with the request</td>
</tr>
<tr>
<td valign="top">101 Switching Protocols</td>
<td valign="top">The server switches protocol
</td>
</tr>
</table>
<p><b>2xx: Successful</b></p>
<table class="ex" cellspacing="0" border="1" width="100%" cellpadding="3">
<tr>
<th align="left" width="40%">Message:</th>
<th align="left" width="60%">Description:</th>
</tr>
<tr>
<td valign="top">200 OK</td>
<td valign="top">The request is OK</td>
</tr>
<tr>
<td valign="top">201 Created</td>
<td valign="top">The request is complete, and a new resource is
created
</td>
</tr>
<tr>
<td valign="top">202 Accepted</td>
<td valign="top">The request is accepted for processing, but the processing
is not complete
</td>
</tr>
<tr>
<td valign="top">203 Non-authoritative Information</td>
<td valign="top"> </td>
</tr>
<tr>
<td valign="top">204 No Content</td>
<td valign="top">
</td>
</tr>
<tr>
<td valign="top">205 Reset Content</td>
<td valign="top">
</td>
</tr>
<tr>
<td valign="top">206 Partial Content</td>
<td valign="top">
</td>
</tr>
</table>
<p><b>3xx: Redirection</b></p>
<table class="ex" cellspacing="0" border="1" width="100%" cellpadding="3">
<tr>
<th align="left" width="40%">Message:</th>
<th align="left" width="60%">Description:</th>
</tr>
<tr>
<td valign="top">300 Multiple Choices</td>
<td valign="top">A link list. The user can select a link and go to that
location. Maximum five addresses </td>
</tr>
<tr>
<td valign="top">301 Moved Permanently</td>
<td valign="top">The requested page has moved to a new url
</td>
</tr>
<tr>
<td valign="top">302 Found</td>
<td valign="top">The requested page has moved temporarily to a new url
</td>
</tr>
<tr>
<td valign="top">303 See Other</td>
<td valign="top">The requested page can be found under a different url
</td>
</tr>
<tr>
<td valign="top">304 Not Modified</td>
<td valign="top">
</td>
</tr>
<tr>
<td valign="top">305 Use Proxy</td>
<td valign="top">
</td>
</tr>
<tr>
<td valign="top">306 <i>Unused</i></td>
<td valign="top">This code was used in a previous version. It is no longer
used, but the code is reserved
</td>
</tr>
<tr>
<td valign="top">307 Temporary Redirect</td>
<td valign="top">The requested page has moved temporarily to a new url
</td>
</tr>
</table>
<p><b>4xx: Client Error</b></p>
<table class="ex" cellspacing="0" border="1" width="100%" cellpadding="3">
<tr>
<th align="left" width="40%">Message:</th>
<th align="left" width="60%">Description:</th>
</tr>
<tr>
<td valign="top">400 Bad Request</td>
<td valign="top">The server did not understand the request</td>
</tr>
<tr>
<td valign="top">401 Unauthorized</td>
<td valign="top">The requested page needs a username and a password
</td>
</tr>
<tr>
<td valign="top">402 Payment Required</td>
<td valign="top"><i>You can not use this code yet</i>
</td>
</tr>
<tr>
<td valign="top">403 Forbidden</td>
<td valign="top">Access is forbidden to the requested page
</td>
</tr>
<tr>
<td valign="top">404 Not Found</td>
<td valign="top">The server can not find the requested page
</td>
</tr>
<tr>
<td valign="top">405 Method Not Allowed</td>
<td valign="top">The method specified in the request is not allowed
</td>
</tr>
<tr>
<td valign="top">406 Not Acceptable</td>
<td valign="top">The server can only generate a response that is not
accepted by the client
</td>
</tr>
<tr>
<td valign="top">407 Proxy Authentication Required</td>
<td valign="top">You must authenticate with a proxy server before this
request can be served
</td>
</tr>
<tr>
<td valign="top">408 Request Timeout</td>
<td valign="top">The request took longer than the server was prepared to
wait
</td>
</tr>
<tr>
<td valign="top">409 Conflict</td>
<td valign="top">The request could not be completed because of a conflict
</td>
</tr>
<tr>
<td valign="top">410 Gone</td>
<td valign="top">The requested page is no longer available
</td>
</tr>
<tr>
<td valign="top">411 Length Required</td>
<td valign="top">The "Content-Length" is not defined. The server
will not accept the request without it
</td>
</tr>
<tr>
<td valign="top">412 Precondition Failed</td>
<td valign="top">The precondition given in the request evaluated to false by
the server
</td>
</tr>
<tr>
<td valign="top">413 Request Entity Too Large</td>
<td valign="top">The server will not accept the request, because the request entity is
too large
</td>
</tr>
<tr>
<td valign="top">414 Request-url Too Long</td>
<td valign="top">The server will not accept the request, because the url is
too long. Occurs when you convert a "post" request to a "get" request with
a long query information
</td>
</tr>
<tr>
<td valign="top">415 Unsupported Media Type</td>
<td valign="top">The server will not accept the request, because the media
type is not supported
</td>
</tr>
<tr>
<td valign="top">416 </td>
<td valign="top">
</td>
</tr>
<tr>
<td valign="top">417 Expectation Failed</td>
<td valign="top">
</td>
</tr>
</table>
<p><b>5xx: Server Error</b></p>
<table class="ex" cellspacing="0" border="1" width="100%" cellpadding="3">
<tr>
<th align="left" width="40%">Message:</th>
<th align="left" width="60%">Description:</th>
</tr>
<tr>
<td valign="top">500 Internal Server Error</td>
<td valign="top">The request was not completed. The server met an unexpected condition</td>
</tr>
<tr>
<td valign="top">501 Not Implemented</td>
<td valign="top">The request was not completed. The server did not support
the functionality required
</td>
</tr>
<tr>
<td valign="top">502 Bad Gateway</td>
<td valign="top">The request was not completed. The server received an
invalid response from the upstream server
</td>
</tr>
<tr>
<td valign="top">503 Service Unavailable</td>
<td valign="top">The request was not completed. The server is temporarily
overloading or down
</td>
</tr>
<tr>
<td valign="top">504 Gateway Timeout</td>
<td valign="top">The gateway has timed out
</td>
</tr>
<tr>
<td valign="top">505 HTTP Version Not Supported</td>
<td valign="top">The server does not support the "http protocol" version
</td>
</tr>
</table>
<br />
<hr />
<a href="ref_urlencode.asp"><img border="0" src="../images/btn_previous.gif" width="100" height="20" alt="Previous" /></a>
<a href="default.asp"><img border="0" src="../images/btn_next.gif" width="100" height="20" alt="Next" /></a>
<hr />
<p>From <b>http://www.w3schools.com</b> (Copyright Refsnes Data)</p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -