nginx

关注公众号 jb51net

关闭
首页 > 网站技巧 > 服务器 > nginx > nginx状态码

nginx状态码的使用及说明

作者:XMYX-0

本文系统介绍了HTTP状态码分类及常见代码含义,分为1xx(信息)、2xx(成功)、3xx(重定向)、4xx(客户端错误)、5xx(服务器错误)五类,涵盖200、301、403、404、500等典型状态码,说明其应用场景与响应机制

常见

这些状态码被分为五大类

二百的

三百的

四百的

五百的

其他

1xx - 信息提示

“100”:Continue
“101”:witchingProtocols

2xx - 成功

“200”:OK
“201”:Created
“202”:Accepted
“203”:Non-AuthoritativeInformation
“204”:NoContent
“205”:ResetContent
“206”:PartialContent

3xx - 重定向

“300”:MultipleChoices
“301”:MovedPermanently
“302”:Found
“303”:SeeOther
“304”:NotModified
“305”:UseProxy
“307”:TemporaryRedirect

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

5xx - 服务器错误

“500”:InternalServerError
“501”:NotImplemented
“502”:BadGateway
“503”:ServiceUnavailable
“504”:GatewayTime-out
“505”:HTTPVersionnotsupported

100

101

200

201

202

203

204

205

206

300

301

302

303

304

305

307

400

401

403

404

405

406

407

408

409

410

411

412

413

414

416

500

501

502

503

504

505

总结

以上为个人经验,希望能给大家一个参考,也希望大家多多支持脚本之家。

您可能感兴趣的文章:
阅读全文