http method and status code

简介: http methodHEAD: 只返回相应的headerPOST: 一般用于提交表单PUT: 向Web服务器上传文件GET: 查DELET: 删除status code1xx与2xx: 返回提示信息3xx: 重定向4xx: 客户端错误5xx: 服务器端错误具体20...

http method

  • HEAD: 只返回相应的header
  • POST: 一般用于提交表单
  • PUT: 向Web服务器上传文件
  • GET: 查
  • DELET: 删除

status code

  • 1xx与2xx: 返回提示信息
  • 3xx: 重定向
  • 4xx: 客户端错误
  • 5xx: 服务器端错误

具体

  • 200: OK
  • 204: No Content, 请求的资源没有body
  • 206: Partial Content, 部分内容, 使用206状态码实现断点续传, 在206的response中有一个Range字段, 他的值是一个数据的范围
  • 301: Move permanently, 永久重定向, 在301中有Location字段, 它的值为新的URL让浏览器自动去访问, 原来的资源是永远无效的
  • 302: Found, 临时重定向, 在当前资源可以访问, 但是需要先访问在302中字段名为Location的URL才行, 典型的就是我们提前访问了需要用户登录才能访问的URL
  • 304: Not Modified, 告诉客户端当前访问的资源没有更新, 可以使用缓存在内存中的页面资源
  • 403: Forbidden, 被Web服务器拒绝了
  • 404: URL找不到
  • 500: Internal Server Error, 服务器错误
  • 503: Server Unavailable, 服务器当前服务访问
目录
相关文章
|
2月前
|
机器学习/深度学习 前端开发 JavaScript
源映射错误:Error: request failed with status 404 源 URL:http://localhost:8080/bootstrap/js/axios-0.18.0.js
源映射错误:Error: request failed with status 404 源 URL:http://localhost:8080/bootstrap/js/axios-0.18.0.js
93 0
源映射错误:Error: request failed with status 404 源 URL:http://localhost:8080/bootstrap/js/axios-0.18.0.js
|
1月前
|
小程序
Failed to load local image resource Xx the server responded with a status of of 500 (HTTP/1.1 500)
Failed to load local image resource Xx the server responded with a status of of 500 (HTTP/1.1 500)
|
1月前
svn: E175002: Commit failed (details follow): svn: E175002: Unexpected HTTP status 502Bad Gateway on
svn: E175002: Commit failed (details follow): svn: E175002: Unexpected HTTP status 502Bad Gateway on
|
29天前
|
文字识别 API 开发工具
视觉智能开放平台操作报错合集之报错提示为“This http method is not supported.”,该如何解决
在使用视觉智能开放平台时,可能会遇到各种错误和问题。虽然具体的错误代码和消息会因平台而异,但以下是一些常见错误类型及其可能的原因和解决策略的概述,包括但不限于:1. 认证错误、2. 请求参数错误、3. 资源超限、4. 图像质量问题、5. 服务不可用、6. 模型不支持的场景、7. 网络连接问题,这有助于快速定位和解决问题。
|
2月前
|
Java 应用服务中间件
HTTP Status 404(The requested resource is not available)
HTTP Status 404(The requested resource is not available)
26 0
|
11月前
|
Web App开发 JavaScript 前端开发
解决DevTools failed to load SourceMap Could not load content for .js.map HTTP error code 404 问题
解决DevTools failed to load SourceMap Could not load content for .js.map HTTP error code 404 问题
440 0
|
2月前
|
应用服务中间件 Android开发
Eclipse中启动tomcat后,无法访问localhost:8080(HTTP Status 404)
Eclipse中启动tomcat后,无法访问localhost:8080(HTTP Status 404)
122 0
|
8月前
|
应用服务中间件
tomcat 异常 HTTP method names must be tokens
tomcat 异常 HTTP method names must be tokens
769 0
热点面试题:常见的http code 及含义?
热点面试题:常见的http code 及含义?
|
11月前
|
KVM 虚拟化
成功解决Problem while trying to mount target]\“. HTTP response code is 400
成功解决Problem while trying to mount target]\“. HTTP response code is 400