400 Bad Request400 Bad Request — Nginx 请求格式错误
Nginx 因 HTTP 请求格式错误而拒绝了客户端请求。
浏览所有 40 个 Nginx 错误 错误代码,包含原因、修复方法和示例。
400 Bad RequestNginx 因 HTTP 请求格式错误而拒绝了客户端请求。
403 ForbiddenNginx 拒绝了对所请求资源的访问。
404 Not Found服务器上未找到所请求的资源。
413 Request Entity Too Large请求体超过了 Nginx 允许的最大大小。
414 URI Too Long请求 URI 超过了 Nginx 可处理的最大长度。
429 Too Many Requests客户端在规定时间内发送了过多请求。
494 Request Header Too Large请求头超过了 Nginx 的最大头部缓冲区大小。
495 SSL Certificate Error客户端提供的 SSL 证书出现错误。
496 SSL Certificate Required服务器要求客户端证书,但客户端未提供。
497 HTTP to HTTPS向 HTTPS 端口发送了明文 HTTP 请求。
499 Client Closed Request客户端在服务器发送响应之前关闭了连接。
500 Internal Server ErrorNginx 或上游应用内部发生了意外错误。
502 Bad GatewayNginx 从上游服务器收到了无效响应。
503 Service Unavailable服务器暂时无法处理请求。
504 Gateway TimeoutNginx 等待上游服务器响应超时。
upstream timed outNginx 等待上游服务器响应时超时。
connect() failed (111: Connection refused)Nginx 无法连接到上游服务器。
worker_connections are not enoughNginx worker 进程已达到最大连接数上限。
SSL_do_handshake() failed与客户端或上游服务器的 SSL/TLS 握手失败。
open() failed (13: Permission denied)Nginx 因文件系统权限不足无法读取文件。
open() failed (2: No such file or directory)Nginx 找不到所请求的文件。
rewrite or internal redirection cycleNginx 检测到无限重定向或重写循环。
no resolver defined to resolveNginx 需要解析主机名,但未配置 DNS 解析器。
too many open filesNginx 已达到最大打开文件描述符数量。
upstream prematurely closed connection上游服务器在发送完整响应之前关闭了连接。
recv() failed (104: Connection reset by peer)客户端在数据传输过程中重置了连接。
conflicting server name两个或多个 server 块使用了相同的 server_name。
could not build server_names_hashNginx 无法构建服务器名称哈希表。
bind() to 0.0.0.0:80 failed (98: Address already in use)Nginx 无法绑定到指定的地址和端口。
invalid PID numberNginx PID 文件中包含无效的进程 ID。
host not found in upstreamNginx 无法解析 upstream 块中指定的主机名。
no live upstreams while connecting to upstream上游服务器池中的所有服务器均被标记为不可用。
SSL: error:0B080074:x509 certificate routines发生了 SSL 证书验证错误。
client body temp file write errorNginx 无法将客户端请求体写入临时文件。
an upstream response is buffered to a temporary file上游响应因超出内存缓冲区大小而被缓冲至磁盘。
upstream sent too big header while reading response header from upstream上游服务器发送的响应头超出了 Nginx 的缓冲区大小。
301 Moved PermanentlyNginx 将客户端永久重定向到新的 URL。
304 Not Modified自客户端上次请求以来,资源未发生变化。
408 Request Timeout客户端未在超时时间内发送完整请求。
no servers are inside upstreamupstream 块中没有定义任何服务器。