Introduction
Status codes tell us if a request to a server worked or not. They give a quick answer without needing to read the full message.
When you want to know if a webpage loaded successfully.
When an app sends data to a server and needs to know if it was saved.
When checking if a login attempt was accepted or denied.
When a server needs to tell a client that something went wrong.
When you want to handle different results differently in your code.