Website Error Codes Explained in Simple Words (404, 502, 503 and More)

2026-12-03来源 dev.toEnglish

Every website shows errors sometimes. The number tells you what went wrong. Here is a simple guide.

Error code groups
4xx means the problem is on the request side (wrong link, no permission)
5xx means the problem is on the server side

Common errors

400 Bad Request
The server did not understand the request. Usually a wrong or broken URL or data.

401 Unauthorized
You are not logged in, or your login is wrong.

403 Forbidden
You are logged in (or not), but you are not allowed to open this page. Check file permissions or access rules.

404 Not Found
The page does not exist. Wrong link, or the page was deleted or moved.

408 Request Timeout
The server waited too long for your request.

429 Too Many Requests
You sent too many requests in a short time. Slow down.

500 Internal Server Error
Something broke inside the app. Check the app logs first.

502 Bad Gateway
The web server (like nginx) is fine, but the app behind it is not answering. Most common cause: app is down or the port is wrong.

503 Service Unavailable
The server is too busy or under maintenance.

504 Gateway Timeout
The app is running but took too long to reply.

Extra errors if you use Cloudflare
521 Web server is down
522 Connection timed out
523 Server not reachable
1033 Cloudflare Tunnel is not connected (the tunnel service stopped or crashed)
For self-hosted servers: what to check
404: Is the file or route really there? Check your nginx root and location.
403: Check file owner and permissions.
500: Read your app logs (pm2 logs or journalctl).
502: Is the app running? (pm2 list) Does proxy_pass use the right port?
503/504: Check CPU, RAM and disk. A full disk or low RAM can cause many problems.
1033: Check if cloudflared is running (systemctl status cloudflared).
Any config change: Run sudo nginx -t before reload.
Golden rule

When you see an error, do not panic. Read the number, then check the logs. The answer is almost always there.

Thanks for reading!

Written by Pratik Mule | Linux Administrator
🔗 More about me: pratikmule127.github.io

原文:https://www.a8q9.cn/en/article/website-error-codes-explained-in-simple-words-404-502-503-and-more-bef4bb.html

相关文章