以下是一些常见的网络错误代码及其含义,帮助你快速识别和处理网络请求中的问题:
常见错误代码速查 📋
代码 | 类型 | 含义 | 示例 |
---|---|---|---|
400 | 客户端错误 | 请求语法错误或无法处理 | GET /invalid-path HTTP/1.1 |
401 | 客户端错误 | 未授权访问 | Authorization header missing |
403 | 客户端错误 | 禁止访问(权限不足) | Forbidden: Access denied |
404 | 客户端错误 | 资源未找到 | GET /nonexistent-page HTTP/1.1 |
500 | 服务器错误 | 内部服务器错误 | Server crash or misconfiguration |
502 | 服务器错误 | 网关错误(后端服务异常) | Bad Gateway: Backend service failed |
503 | 服务器错误 | 服务不可用 | Service Unavailable: Overloaded |
504 | 服务器错误 | 网关超时 | Gateway Timeout: Backend response delayed |