本文转自: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
HTTP状态码详解
最新推荐文章于 2025-04-14 18:08:26 发布
本文详细介绍了HTTP协议中常见的状态码,包括1xx到5xx系列,涵盖了从临时响应到服务器内部错误的各种情况,并解释了每个状态码的具体含义。
1754

被折叠的 条评论
为什么被折叠?



