前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >HTTP status and The meaning

HTTP status and The meaning

作者头像
ianzhi
发布2023-10-19 10:17:01
1160
发布2023-10-19 10:17:01
举报
文章被收录于专栏:LNMP开发那些事LNMP开发那些事

HTTP status and The meaning

Here are some of the most common HTTP status codes and their meanings:

  • 1xx – Informational: These status codes indicate that the request has been received and is being processed.
    • 100 Continue: The server has received the request headers and is waiting for the request body.
    • 101 Switching Protocols: The server has switched to a different protocol, such as HTTP/2.
  • 2xx – Success: These status codes indicate that the request has been successfully received, understood, and accepted.
    • 200 OK: The request has been successfully completed.
    • 201 Created: The request has been fulfilled and a new resource has been created.
    • 202 Accepted: The request has been accepted for processing, but the processing has not been completed yet.
  • 3xx – Redirection: These status codes indicate that further action needs to be taken in order to complete the request.
    • 301 Moved Permanently: The requested resource has been moved permanently to a new location.
    • 302 Found: The requested resource has been temporarily moved to a new location.
    • 304 Not Modified: The requested resource has not been modified since the last time it was requested.
  • 4xx – Client Error: These status codes indicate that the request contains bad syntax or cannot be fulfilled.
    • 400 Bad Request: The request cannot be understood by the server.
    • 401 Unauthorized: The request requires authentication.
    • 404 Not Found: The requested resource could not be found.
  • 5xx – Server Error: These status codes indicate that the server has encountered an error while processing the request.
    • 500 Internal Server Error: An unexpected error has occurred on the server.
    • 503 Service Unavailable: The server is temporarily unavailable.
    • 504 Gateway Timeout: The server did not receive a timely response from another server.

There are many other HTTP status codes, but these are some of the most common ones. You can find a complete list of HTTP status codes here: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • HTTP status and The meaning
相关产品与服务
云开发 CloudBase
云开发(Tencent CloudBase,TCB)是腾讯云提供的云原生一体化开发环境和工具平台,为200万+企业和开发者提供高可用、自动弹性扩缩的后端云服务,可用于云端一体化开发多种端应用(小程序、公众号、Web 应用等),避免了应用开发过程中繁琐的服务器搭建及运维,开发者可以专注于业务逻辑的实现,开发门槛更低,效率更高。
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档