当前位置:网站首页>服务器响应状态码
服务器响应状态码
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 | 客户端需要进行身份验证才能获得网络访问权限 |
边栏推荐
- Ransack combined condition search implementation
- "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!
- ServiceMesh主要解决的三大痛点
- Market Research - current situation and future development trend of carob chocolate market
- 【AUTOSAR-DCM】-4.3-UDS $22和$2E服务如何读取和写入NVM数据
- 加了定位的文字如何水平垂直居中
- Market Research - current situation and future development trend of marine clutch Market
- Get off work on time! Episode 6 of Excel Collection - how to split and count document amounts
- [shutter] shutter page life cycle (initialization period | createstate | initstate | update period | build | destroy period | dispose)
- Market Research - current market situation and future development trend of intravenous injection (IV) bottles
猜你喜欢

Socket套接字C/S端流程

GEE:(二)对影像进行重采样

From personal heroes to versatile developers, the era of programmer 3.0 is coming

Hanoi Tower problem

UE4 游戏架构 学习笔记

TinyMCE visual editor adds Baidu map plug-in

情感计算与理解研究发展概述

Sql service intercepts string

The source code of the daily book analyzes the design idea of Flink and solves the problems in Flink
![[shutter] shutter application life cycle (foreground state resumed | background state paused | inactive | component separation state detached)](/img/4c/c8dae41fc2eb18b5153cf36861fc7d.jpg)
[shutter] shutter application life cycle (foreground state resumed | background state paused | inactive | component separation state detached)
随机推荐
Technological Entrepreneurship: failure is not success, but reflection is
tinymce可视化编辑器增加百度地图插件
Attack and defense world PWN question: Echo
A specially designed loss is used to deal with data sets with unbalanced categories
Evolution of messaging and streaming systems under the native tide of open source cloud
Unity3d learning notes 4 - create mesh advanced interface
Market Research - current market situation and future development trend of high tibial osteotomy plate
Leetcode theme [array] -169- most elements
Service visibility and observability
[shutter] shutter gesture interaction (click event handling | click OnTap | double click | long press | click Cancel | press ontapdown | lift ontapup)
SQL必需掌握的100个重要知识点:管理事务处理
Web side defense Guide
The source code of the daily book analyzes the design idea of Flink and solves the problems in Flink
[QT] Q multithreaded development - Analysis of multithreaded application examples (Mandelbrot)
Market Research - current situation and future development trend of cell-based seafood market
Market Research - current situation and future development trend of preclinical medical device testing service market
APP页面分享口令Rails实现
Socket套接字C/S端流程
开发者分享 | HLS, 巧用AXI_master总线接口指令的定制并提升数据带宽-面积换速度...
Meibeer company is called "Manhattan Project", and its product name is related to the atomic bomb, which has caused dissatisfaction among Japanese netizens