HTTP状态码详解

  本文转自:http://www.zhenhua.org/article.asp?id=428

  1、1xx:表示临时响应并需要申请人继续执行操作的状态码。
   "100":Continue
   "101":witchingProtocols

  2、2xx:表示服务器已成功处理请求的状态码。
   "200":OK
   "201":Created
   "202":Accepted
   "203":Non-AuthoritativeInformation
   "204":NoContent
   "205":ResetContent
   "206":PartialContent

  3、3xx:表示要完成请求,需要进一步操作,通常,这些状态代码用来重定向。
   "300":MultipleChoices
   "301":MovedPermanently
   "302":Found
   "303":SeeOther
   "304":NotModified
   "305":UseProxy
   "307":TemporaryRedirect

  4、4xx:这些状态代码表示请求可能出错,妨碍了服务器的处理。
   "400":BadRequest
   "401":Unauthorized
   "402":PaymentRequired
   "403":Forbidden
   "404":NotFound
   "405":MethodNotAllowed
   "406":NotAcceptable
   "407":ProxyAuthenticationRequired
   "408":RequestTime-out
   "409":Conflict
   "410":Gone
   "411":LengthRequired
   "412":PreconditionFailed
   "413":RequestEntityTooLarge
   "414":Request-URITooLarge
   "415":UnsupportedMediaType
   "416":Requestedrangenotsatisfiable
   "417":ExpectationFailed

  5、5xx:这些状态代码表示服务器在处理请求时发生内部错误。这些错误可能是服务器本身的错误,而不是请求出错。
   "500":InternalServerError
   "501":NotImplemented
   "502":BadGateway
   "503":ServiceUnavailable
   "504":GatewayTime-out
   "505":HTTPVersionnotsupported

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值