it编程 > 编程语言 > Javascript

nginx状态码的使用及说明

39人参与 2025-10-03 Javascript

常见

这些状态码被分为五大类

二百的

三百的

四百的

五百的

其他

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

总结

以上为个人经验,希望能给大家一个参考,也希望大家多多支持代码网。

(0)

您想发表意见!!点此发布评论

推荐阅读

在CentOS 7上安装Node.js 18.20.4全过程

10-03

CentOS7安装nodejs18和yarn操作实践

10-03

深度解析@JsonSerialize注解及其在Jackson 序列化中的应用小结

10-11

Mysql提取JSON对象和数组的方法示例代码

09-24

使用@RequestParam接受JSON的字符串方式

10-17

JDK自带的jstat命令该怎么用详解

10-20

猜你喜欢

版权声明:本文内容由互联网用户贡献,该文观点仅代表作者本人。本站仅提供信息存储服务,不拥有所有权,不承担相关法律责任。 如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 2386932994@qq.com 举报,一经查实将立刻删除。

发表评论