In plain words
A status code is the three-digit number on every server reply: 2xx means it worked, 4xx means the request had a problem, 5xx means the server broke.
Where you see it
The red rows in the Network tab, the "404 | This page could not be found" screen in Next.js, and the 500s in your Vercel logs. The number tells you which side to blame before you read a word of the error.
What goes wrong
- Saying 200 OK with an error inside
The server replies with a success code and an error message in the body. The browser sees success and shows the confirmation page.
return Response.json({ error: "Payment failed" }); // still 200 - One message for every failure
401 means sign in, 403 means not allowed, 404 means it isn't there and 500 means the server crashed. "Something went wrong" for all four hides the fix.
- Fixing the browser when the server is broken
A 5xx means the bug is on the server. Point your agent at the server logs instead of letting it restyle the button again.
What to tell your agent
Quick check
Sign in to earn +10 XP for itA Guildhall member gets a 403 when opening the admin page. What does it mean?