http状态码中英文详解
做网站的站长避免不了要接触各种http状态码,为了让大家对各种http状态代码更加了解,本文就各种http状态代码进行详解,希望对大家有帮助。
1xx(临时响应)
用于表示临时响应并需要请求者执行操作才能继续的状态代码。
100(继续) 请求者应当继续提出请求。服务器返回此代码则意味着,服务器已收到了请求的第一部分,现正在等待接收其余部分。
101(切换协议) 请求者已要求服务器切换协议,服务器已确认并准备进行切换。
2xx(成功)
用于表示服务器已成功处理了请求的状态代码。
200(成功) 服务器已成功处理了请求。通常,这表示服务器提供了请求的网页。如果您的 robots.txt 文件显示为此状态,那么,这表示 搜索引擎蜘蛛 已成功检索到该文件。
201(已创建) 请求成功且服务器已创建了新的资源。
202(已接受) 服务器已接受了请求,但尚未对其进行处理。
203(非授权信息) 服务器已成功处理了请求,但返回了可能来自另一来源的信息。
204(无内容) 服务器成功处理了请求,但未返回任何内容。
205(重置内容) 服务器成功处理了请求,但未返回任何内容。与 204 响应不同,此响应要求请求者重置文档视图(例如清除表单内容以输入新内容)。
206(部分内容) 服务器成功处理了部分 GET 请求。
3xx(已重定向)
向错误而无法抓取的网址。
300(多种选择) 服务器根据请求可执行多种操作。服务器可根据请求者 (User agent) 来选择一项操作,或提供操作列表供请求者选择。
301(永久移动) 请求的网页已被永久移动到新位置。服务器返回此响应(作为对 GET 或 HEAD 请求的响应)时,会自动将请求者转到新位置。您应使用此代码通知 搜索引擎蜘蛛
某个网页或网站已被永久移动到新位置。
302(临时移动) 服务器目前正从不同位置的网页响应请求,但请求者应继续使用原有位置来进行以后的请求。此代码与响应 GET 和 HEAD 请求的 301 代码类似,会自动将请求
者转到不同的位置。但由于 搜索引擎蜘蛛 会继续抓取原有位置并将其编入索引,因此您不应使用此代码来通知 搜索引擎蜘蛛 某个页面或网站已被移动。
303(查看其他位置) 当请求者应对不同的位置进行单独的 GET 请求以检索响应时,服务器会返回此代码。对于除 HEAD 请求之外的所有请求,服务器会自动转到其他位置。
304(未修改) 自从上次请求后,请求的网页未被修改过。服务器返回此响应时,不会返回网页内容。
如果网页自请求者上次请求后再也没有更改过,您应当将服务器配置为返回此响应(称为 If-Modified-Since HTTP 标头)。由于服务器可以告诉 搜索引擎蜘蛛 自从上次抓取后网页没有更改过,因此可节省带宽和开销
305(使用代理) 请求者只能使用代理访问请求的网页。如果服务器返回此响应,那么,服务器还会指明请求者应当使用的代理。
307(临时重定向) 服务器目前正从不同位置的网页响应请求,但请求者应继续使用原有位置来进行以后的请求。此代码与响应 GET 和 HEAD 请求的 301 代码类似,会自动将请
求者转到不同的位置。但由于 搜索引擎蜘蛛 会继续抓取原有位置并将其编入索引,因此您不应使用此代码来通知 搜索引擎蜘蛛 某个页面或网站已被移动。
4xx(请求错误)
这些状态代码表示,请求可能出错,已妨碍了服务器对请求的处理。
400(错误请求) 服务器不理解请求的语法。
401(未授权) 请求要求进行身份验证。登录后,服务器可能会返回对页面的此响应。
403(已禁止) 服务器拒绝请求。如果在 搜索引擎蜘蛛 尝试抓取您网站上的有效网页时显示此状态代码(您可在 Google 网站管理员工具中诊断下的网络抓取页面上看到此状态代码),那么,这可能是您的服务器或主机拒绝 搜索引擎蜘蛛 对其进行访问。
404(未找到) 服务器找不到请求的网页。例如,如果请求是针对服务器上不存在的网页进行的,那么,服务器通常会返回此代码。
如果您的网站上没有 robots.txt 文件,那么,这是正确的状态。然而,如果您有 robots.txt 文件而又发现了此状态,那么,这说明您的 robots.txt 文件可能是命名错误或位于错误的位置。(该文件应当位于顶级域名上,且应当名为 robots.txt)。
如果您在 搜索引擎蜘蛛 尝试抓取的网址上发现此状态(位于”诊断”标签的 HTTP 错误页上),那么,这表示 搜索引擎蜘蛛 所追踪的可能是另一网页中的无效链接(旧链接或输入有误的链接)。
405(方法禁用) 禁用请求中所指定的方法。
406(不接受) 无法使用请求的内容特性来响应请求的网页。
407(需要代理授权) 此状态代码与 401(未授权)类似,但却指定了请求者应当使用代理进行授权。如果服务器返回此响应,那么,服务器还会指明请求者应当使用的代理。
408(请求超时) 服务器等候请求时超时。
409(冲突) 服务器在完成请求时发生冲突。服务器必须包含有关响应中所发生的冲突的信息。服务器在响应与前一个请求相冲突的 PUT 请求时可能会返回此代码,同时会提供两个请求的差异列表。
410(已删除) 如果请求的资源已被永久删除,那么,服务器会返回此响应。该代码与 404(未找到)代码类似,但在资源以前有但现在已经不复存在的情况下,有时会替代 404代码出现。如果资源已被永久删除,那么,您应当使用 301 代码指定该资源的新位置。
411(需要有效长度) 服务器不会接受包含无效内容长度标头字段的请求。
412(未满足前提条件) 服务器未满足请求者在请求中设置的其中一个前提条件。
413(请求实体过大) 服务器无法处理请求,因为请求实体过大,已超出服务器的处理能力。
414(请求的 URI 过长) 请求的 URI(通常为网址)过长,服务器无法进行处理。
415(不支持的媒体类型) 请求的格式不受请求页面的支持。
416(请求范围不符合要求) 如果请求是针对网页的无效范围进行的,那么,服务器会返回此状态代码。
417(未满足期望值) 服务器未满足”期望”请求标头字段的要求。
5xx(服务器错误)
这些状态代码表示,服务器在尝试处理请求时发生内部错误。这些错误可能是服务器本身的错误,而不是请求出错。
500(服务器内部错误) 服务器遇到错误,无法完成请求。
501(尚未实施) 服务器不具备完成请求的功能。例如,当服务器无法识别请求方法时,服务器可能会返回此代码。
502(错误网关) 服务器作为网关或代理,从上游服务器收到了无效的响应。
503(服务不可用) 目前无法使用服务器(由于超载或进行停机维护)。通常,这只是一种暂时的状态。
504(网关超时) 服务器作为网关或代理,未及时从上游服务器接收请求。
505(HTTP 版本不受支持) 服务器不支持请求中所使用的 HTTP 协议版本。
Web site owners to avoid exposure to various HTTP status code, in order to let everyone on the HTTP status code is more understanding, this paper detailed explanation of the HTTP status code.
1XX ( temporary response )
Used to indicate temporary response and request the execution operation to continue the status code.
100 ( Continued ) the requester shall continue to request. The server returns this code means, the server has received a request to the first part, we are waiting to receive the remainder.
101 ( Protocol ) the requester has asked the server protocol server has been confirmed, and prepare to switch.
2XX ( success)
Used to express server successfully processed the request status code.
200 ( success) server has been successfully processed the request. Usually, the said server provides the requested webpage. If your robots.txt file is displayed for this state, then, that the search engine spiders have been successfully retrieved the document.
201 ( created ) the request was successful and the server has created new resources.
202 ( accepted) server has accepted the request, but not for its treatment.
203 (unauthorized information ) server has been successfully processed the request, but returned may come from another source of information.
204 ( no content ) server successfully processed the request, but did not return any content.
205 ( reset content ) server successfully processed the request, but did not return any content. With 204 different response in response to the request, the request to reset the document view (such as removing the content of the form to enter new content ).
( Part 206 ) server successfully dealt with a portion of the GET request.
3xx ( redirected )
To mistake to crawl url.
300 ( multiple choice ) by the server can perform multiple operations. Server according to the requester ( User agent ) to select an operation, or operation list for a requester selects.
301 ( moved permanently ) request webpage has been permanently moved to a new location. The server returns the response ( as on GET or HEAD request response ), and will request to a new location. You should use this code notification of a search engine spider
A webpage or website has been permanently moved to a new location.
302 ( Temporary Mobile ) server is different from the position of the webpage in response to the request, the request should continue to use the original location for future requests. This code and the response of GET and HEAD request to the 301 code is similar, and will request
People go to a different location. But as a result of the search engine spiders will continue to capture the original position and the indexed, so you should not use this code to tell the search engine spiders a page or site has been moved.
303 ( see other position ) when the request to a different position was a separate GET request to retrieve a response, the server will return this code. In addition to the HEAD request for all but the request, the server automatically transferred to other locations.
304 ( unmodified) since the last request, request webpage has not been modified. The server returns the response, not return webpage content.
If the requester webpage since last request and never changed, you should configure the server to return the response ( known as If-Modified-Since HTTP header ). Because the server can tell the search engine spiders crawl after have changed since the last webpage, thus can save bandwidth and cost
305 ( proxy ) the requester can only use the proxy access request webpage. If the server returns the response, then the server will indicate the request, should use the proxy.
307 ( temporary redirect ) server is different from the position of the webpage in response to the request, the request should continue to use the original location for future requests. This code and the response of GET and HEAD request to the 301 code is similar, will automatically be please
Ask the person to a different location. But as a result of the search engine spiders will continue to capture the original position and the indexed, so you should not use this code to tell the search engine spiders a page or site has been moved.
4xx ( request error )
The status code indicates, the request may go wrong, has been hampered by the server to request processing.
400 ( error request server does not understand the grammar request ).
401 ( unauthorized ) request for authentication. After login, the server may return to the page of this response.
403 ( banned ) server refused request. If the search engine spider trying to crawl your site effective webpage show this status code ( you can be in the Google webmaster tools in the diagnosis of Web crawl page to see the status code ), then, this may be your server or host refused to search engine spiders of their visit.
404 ( not found) server could not find the requested webpage. For example, if the request is directed to the server doesn’t exist on the webpage of the, then, the server will typically return this code.
If you are not on site robots.txt files, so, this is the correct state. However, if you have a robots.txt file and found this state, so, this shows your robots.txt files may be naming errors or is in the wrong position. ( the file should be located in the top-level domain name, and shall be called robots.txt ).
If you are in a search engine spider trying to grab the website, discover this state (in the” diagnosis” label HTTP error page ), then, this means a search engine spider by tracking may be another webpage of invalid link ( old links or input error link).
405 ( method to disable disable ) specified in the request method.
406 ( not acceptable) cannot use the requested content characteristics in response to a request of the webpage.
407 ( need authorized agent ) this status code and 401 ( unauthorized ) is similar, but specifies a request should use the proxy authorization. If the server returns the response, then the server will indicate the request, should use the proxy.
408 ( request timeout ) server request timeout waiting for.
409 ( conflict ) server completes the request conflicts. The server must contain information about the response of the conflict between information. The server in response and a previous request conflicts with the PUT request may return this code, at the same time provide a two request to the difference list.
410 ( deleted ) if the requested resource has been permanently removed, then, the server will return the response. The code and 404 ( not found) code is similar, but the resources used to have but now no longer exists, sometimes replaced the 404 code appears. If the resource has been permanently removed, then, you should use a 301 code specifies that the resources of the new position.
411 (the need for effective length ) the server will not accept contains invalid Content-Length header field request.
412 (not to meet the prerequisite ) server does not satisfy the request in the request is set in one of the preconditions.
413 ( request entity too large ) server cannot process the request, because the request entity too large, has exceeded the processing power of the server.
414 ( URI request request too long ) URI ( usually for the URL ) is too long, the server can not be processed.
415 ( unsupported media type ) request format from the requested page support.
416 ( request scope does not meet the requirements of ) if the request is directed to webpage invalid was, then, the server will return the status code.
417 ( unmet expectations) server does not meet the” expectations” request-header field requirements.
5xx ( error )
The status code indicates, in attempt to handle the request server internal error. These errors may be the server itself is wrong, not request error.
500 ( internal server error the server encountered an error ), was unable to complete your request.
501 ( not implemented ) the server does not have to complete the requested function. For example, when the server is unable to identify the request method, the server may return this code.
502 ( error gateway ) server as a gateway or proxy, upstream from the server received an invalid response.
503 ( service not available ) is currently unavailable the server ( due to overloading or downtime for maintenance ). Usually, this is a temporary state.
504 ( Gateway timeout ) server as a gateway or proxy, not timely from the upstream server receives the request.
505 ( HTTP version is not supported ) the server does not support the request by the use of the HTTP protocol version.