HTTP状态消息

When a browser requests a service from a web server, an error might occur.
当浏览器向web服务器请求服务的时候可能会产生错误

This is a list of HTTP status messages that might be returned:
下面是所有这些错误所返回的HTTP状态消息列表


1xx: 信息

消息:描述:
100 ContinueOnly 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
服务器只接受到部分请求,但并没有拒绝,客户应该继续请求
101 Switching ProtocolsThe server switches protocol
服务器交换机议定书

2xx: 成功

消息:描述:
200 OKThe request is OK
请求成功
201 CreatedThe request is complete, and a new resource is created
请求完成,新资源被建立
202 AcceptedThe request is accepted for processing, but the processing is not complete
进程接受请求,但整个进程尚未完毕
203 Non-authoritative Information 
204 No Content 
205 Reset Content 
206 Partial Content 

3xx: 重定向

消息:描述:
300 Multiple ChoicesA link list. The user can select a link and go to that location. Maximum five addresses
连接列表。用户可以通过选择一个连接到达指定的连接位置。最大允许输入5个地址。
301 Moved PermanentlyThe requested page has moved to a new url
请求页切换到一个新的URL地址

302 Found
The requested page has moved temporarily to a new url
请求页临时切换到一个新的URL地址
303 See OtherThe requested page can be found under a different url
请求页可以在另一个URL地址中找到
304 Not Modified 
305 Use Proxy 
306 UnusedThis code was used in a previous version. It is no longer used, but the code is reserved
该代码仅在先前版本中支持。当前版本已不再支持该代码,但是代码部分仍将保留
307 Temporary RedirectThe requested page has moved temporarily to a new url
请求页临时切换到一个新的URL地址

4xx: 客户端错误

消息:描述:
400 Bad RequestThe server did not understand the request
服务器不能读懂请求
401 UnauthorizedThe requested page needs a username and a password
请求页面需要输入用户名和密码
402 Payment RequiredYou can not use this code yet
不允许在使用这段代码
403 ForbiddenAccess is forbidden to the requested page
禁止访问请求页面
404 Not FoundThe server can not find the requested page
服务器不能找到请求页面
405 Method Not AllowedThe method specified in the request is not allowed
不允许该请求
406 Not AcceptableThe server can only generate a response that is not accepted by the client
客户端不能接受来自于服务器的回应
407 Proxy Authentication RequiredYou must authenticate with a proxy server before this request can be served
不许在该请求被处理之前确定是否使用了代理服务器
408 Request TimeoutThe request took longer than the server was prepared to wait
请求超时
409 ConflictThe request could not be completed because of a conflict
请求发生冲突
410 GoneThe requested page is no longer available
请求页已失效
411 Length RequiredThe "Content-Length" is not defined. The server will not accept the request without it
用于"Content-Length"未定义导致服务器不能接受该请求
412 Precondition FailedThe precondition given in the request evaluated to false by the server
请求中的预处理过程失败
413 Request Entity Too LargeThe server will not accept the request, because the request entity is too large
由于请求实体过大导致服务器不接受该请求
414 Request-url Too LongThe 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
服务器不接受该请求,因为URL过长。当你通过一条较长的查询信息将“post”请求转换为“get”请求时,将会发生该错误
415 Unsupported Media TypeThe server will not accept the request, because the media type is not supported
服务器不接受该请求,主要是因为使用的媒体类型不支持
416  
417 Expectation Failed 

5xx: 服务器端错误

消息:描述:
500 Internal Server ErrorThe request was not completed. The server met an unexpected condition
请求未能完成。服务器遭遇意外情况
501 Not ImplementedThe request was not completed. The server did not support the functionality required
请求未能完成。服务器不支持该指定的功能
502 Bad GatewayThe request was not completed. The server received an invalid response from the upstream server
请求未能完成。服务器从上游服务器中提取了无效回应
503 Service UnavailableThe request was not completed. The server is temporarily overloading or down
请求未能完成。服务器承载量超负荷
504 Gateway TimeoutThe gateway has timed out
网关超时
505 HTTP Version Not SupportedThe server does not support the "http protocol" version
服务器不支持该“http protocal[http协议]”版本
 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值