在社区文档中,状态码是理解HTTP请求和响应的关键。以下是一些常见的状态码及其含义:
- 200 OK:请求成功。
- 404 Not Found:请求的资源不存在。
- 500 Internal Server Error:服务器内部错误。
HTTP状态码图解
更多详细信息和示例,请参考HTTP状态码指南。
常见状态码列表
1xx:信息性状态码
- 100 Continue
- 101 Switching Protocols
2xx:成功状态码
- 200 OK
- 201 Created
- 202 Accepted
3xx:重定向状态码
- 301 Moved Permanently
- 302 Found
- 304 Not Modified
4xx:客户端错误状态码
- 400 Bad Request
- 401 Unauthorized
- 403 Forbidden
5xx:服务器错误状态码
- 500 Internal Server Error
- 502 Bad Gateway
- 503 Service Unavailable