当前位置:网站首页>服务器响应状态码
服务器响应状态码
2022-07-02 22:01:00 【JJpZh】
一、状态码大类
状态码分类 | 说明 |
---|---|
1xx | 响应中——临时状态码,表示请求已经接受,告诉客户端应该继续请求或者如果它已经完成则忽略它 |
2xx | 成功——表示请求已经被成功接收,处理已完成 |
3xx | 重定向——重定向到其它地方:它让客户端再发起一个请求以完成整个处理。 |
4xx | 客户端错误——处理发生错误,责任在客户端,如:客户端的请求一个不存在的资源,客户端未被授权,禁止访问等 |
5xx | 服务器端错误——处理发生错误,责任在服务端,如:服务端抛出异常,路由出错,HTTP版本不支持等 |
二、常见的响应状态码
状态码 | 英文描述 | 解释 |
---|---|---|
200 | OK | 客户端请求成功,即处理成功,这是我们最想看到的状态码 |
302 | Found | 指示所请求的资源已移动到由Location 响应头给定的 URL,浏览器会自动重新访问到这个页面 |
304 | Not Modified | 告诉客户端,你请求的资源至上次取得后,服务端并未更改,你直接用你本地缓存吧。隐式重定向 |
400 | Bad Request | 客户端请求有语法错误,不能被服务器所理解 |
403 | Forbidden | 服务器收到请求,但是拒绝提供服务,比如:没有权限访问相关资源 |
404 | Not Found | 请求资源不存在,一般是URL输入有误,或者网站资源被删除了 |
428 | Precondition Required | 服务器要求有条件的请求,告诉客户端要想访问该资源,必须携带特定的请求头 |
429 | Too Many Requests | 太多请求,可以限制客户端请求某个资源的数量,配合 Retry-After(多长时间后可以请求)响应头一起使用 |
431 | Request Header Fields Too Large | 请求头太大,服务器不愿意处理请求,因为它的头部字段太大。请求可以在减少请求头域的大小后重新提交。 |
405 | Method Not Allowed | 请求方式有误,比如应该用GET请求方式的资源,用了POST |
500 | Internal Server Error | 服务器发生不可预期的错误。服务器出异常了,赶紧看日志去吧 |
503 | Service Unavailable | 服务器尚未准备好处理请求,服务器刚刚启动,还未初始化好 |
511 | Network Authentication Required | 客户端需要进行身份验证才能获得网络访问权限 |
边栏推荐
- #include errors detected. Please update your includePath.
- PHP微信抢红包的算法
- 基于ASP.net的手机销售管理系统(二手手机销售管理系统)+ASP.NET+C#语言+VS2010+数据库可以用于课设、毕设学习
- "New programmer 003" was officially launched, and the cloud native and digital practical experience of 30+ companies such as Huawei and Alibaba
- phpcms实现订单直接支付宝支付功能
- Hanoi Tower problem
- Perceptron model and Application
- ArrayList分析2 :Itr、ListIterator以及SubList中的坑
- Pointer and string
- 分享一下如何制作专业的手绘电子地图
猜你喜欢
Perceptron model and Application
20220702-程序员如何构建知识体系?
Technical solution of vision and manipulator calibration system
It's not easy to say I love you | use the minimum web API to upload files (swagger support) # yyds dry inventory #
pip安装whl文件报错:ERROR: ... is not a supported wheel on this platform
情感计算与理解研究发展概述
《ActBERT》百度&悉尼科技大学提出ActBERT,学习全局局部视频文本表示,在五个视频-文本任务中有效!
TinyMCE visual editor adds Baidu map plug-in
Ransack combined condition search implementation
Infrastructure is code: a change is coming
随机推荐
使用 EMQX Cloud 实现物联网设备一机一密验证
Scrcpy this software solves the problem of sharing mobile screen with colleagues | community essay solicitation
Evolution of messaging and streaming systems under the native tide of open source cloud
"Actbert" Baidu & Sydney University of technology proposed actbert to learn the global and local video text representation, which is effective in five video text tasks!
[shutter] shutter gesture interaction (click event handling | click OnTap | double click | long press | click Cancel | press ontapdown | lift ontapup)
Web side defense Guide
The difference between include < > and include ""
【AUTOSAR-DCM】-4.3-UDS $22和$2E服务如何读取和写入NVM数据
Pointer - function pointer
Perceptron model and Application
Using emqx cloud to realize one machine one secret verification of IOT devices
Necessary browser plug-ins for network security engineers
LxC terminal login method
pip安装whl文件报错:ERROR: ... is not a supported wheel on this platform
U++ 原始内存 学习笔记
Pointer array parameter passing, pointer parameter passing
Official announcement! The golden decade of new programmers and developers was officially released
: last child does not take effect
Market Research - current market situation and future development trend of genome editing mutation detection kit
Tencent three sides: in the process of writing files, the process crashes, and will the file data be lost?