Tomcat returns 404 after a WAR deploy
The WAR deploys with no error and Manager lists the application as running, but the URL you expect returns 404.
What it does. It checks which context path Tomcat actually assigned - the WAR file name, and any context file under conf/Catalina/localhost that overrides it - and tails the log covering that request, so you find out whether the app is live at a different path or not serving the request at all.
502 Bad Gateway
nginx is running, the site is down, and the error page tells you nothing about which of the two sides is at fault.
What it does. It reads the error log and the vhost, then checks what is actually listening on the upstream port. Usually the app moved and the proxy did not, and it can tell you which one changed.
504 Gateway Timeout
The page hangs and then dies. The app looks fine when you check it directly, which makes it look like nginx is the problem.
What it does. It compares how long the upstream really takes against the proxy read timeout, so you find out whether to raise the timeout or fix the slow request, rather than guessing.
Config changes do nothing
You edited the file, reloaded, and the site behaves exactly as before. Everything looks correct in the file you opened.
What it does. It works out which file is genuinely serving that domain across sites-available, sites-enabled and conf.d, and finds the duplicate server block or missing symlink that is winning instead.
nginx shows the default page
A new domain lands on the welcome page instead of your app, and the config looks right.
What it does. It checks the server_name matching, whether the site is enabled, and whether the default server is catching the request first, which is what usually happens.
nginx will not start after an edit
A reload or restart fails and the site is now down, which is the worst possible moment to be reading syntax errors.
What it does. Every config change is validated with nginx -t before anything is applied, so a broken config is caught while the old one is still serving traffic.
413 Request Entity Too Large
Uploads fail beyond a certain size and the limit is not where you expect it to be.
What it does. It finds which layer is imposing the cap, since client_max_body_size can be set in the http, server or location block, and shows you the one that is actually applying.