HTTP状态码是服务器在响应客户端请求时返回的3位数字代码,用于表示请求的处理结果。以下是常见状态码分类:

成功响应

  • 200 OK ✅ 请求成功处理

    200_OK
    [了解更多](/developer-apis/http_status/200_ok)
  • 201 Created 📝 资源成功创建

    201_Created

重定向

  • 301 Moved Permanently 🔄 永久移动

    301_Moved_Permanently
  • 302 Found 🔄 临时移动

    302_Found

客户端错误

  • 400 Bad Request ❌ 请求语法错误

    400_Bad_Request
  • 404 Not Found ❌ 资源不存在

    404_Not_Found
    [查看常见404解决方案](/developer-apis/http_status/404_solutions)

服务器错误

  • 500 Internal Server Error ❌ 服务器内部错误

    500_Internal_Server_Error
  • 503 Service Unavailable ⚠️ 服务器暂时过载

    503_Service_Unavailable

如需深入理解状态码机制,可参考HTTP协议官方文档