HTTP状态码是服务器在响应客户端请求时返回的3位数字代码,用于表示请求的处理结果。以下是常见状态码分类:
成功响应
200 OK ✅ 请求成功处理
[了解更多](/developer-apis/http_status/200_ok)201 Created 📝 资源成功创建
重定向
301 Moved Permanently 🔄 永久移动
302 Found 🔄 临时移动
客户端错误
400 Bad Request ❌ 请求语法错误
404 Not Found ❌ 资源不存在
[查看常见404解决方案](/developer-apis/http_status/404_solutions)
服务器错误
500 Internal Server Error ❌ 服务器内部错误
503 Service Unavailable ⚠️ 服务器暂时过载
如需深入理解状态码机制,可参考HTTP协议官方文档。