API Fundamentals
/Beginner
5xx Server Errors
Definition
HTTP status codes ranging from 500-599. They indicate that the SERVER failed to fulfill a completely valid request due to an internal crash, bug, or overload.
Explain Like I'm New
The server saying: 'You did everything right, but I broke. My database crashed, my code has a typo, or I am on fire. Please try again later.'
Real World Example
A backend developer writes `console.log(user.name)` but `user` is undefined. The Node.js server crashes entirely and returns a `500 Internal Server Error` to the frontend.
Common Use Cases
- •Server monitoring
- •Downtime alerts
Interactive Example
Loading...
Console output will appear here...
Interview Questions
basic
- Who is at fault when a 5xx error occurs: The Frontend Developer or the Backend Developer?
intermediate
- What does a `502 Bad Gateway` mean in a microservices architecture?