HTTP Response Status Codes
Let’s do something a tad different. Instead of talking about the nitty gritty straight forward I want to try to make everything memorable.
I will be relating the status codes to my dysfunctional family. We all have a little messed up family… Don’t pretend you don’t. This is SUPER relatable.
First and foremost, lets talk about what status codes are. Every time you communicate with a website you are interfacing with status codes. Whether you realize it not its happening. Some of you may be aware of “404” errors and that itself is a status code.
There are 5 unique identifiers for our status codes: (this is where we relate to our families to make it easier to remember)
1xx - Informational Status Code
These would be the family members who always come up and tell you too much information. Sure a lot of it can be important but they tend to overshare just a bit too much
2xx - Successful Status Code
2xx family members could easily be the family that is always doing well or atleast appears to be doing well
3xx - Redirection Status Codes
Best example I can provide to these family members are the ones that avoid things and put it on others
4xx - Client Error Status Codes
These individuals do not accept responsibility for their actions. Always anothers fault, internet isnt working and that’s on you, kinda guy.
5xx - Server Error Status Codes
This can go one of two ways. The family member that accepts responsibility and says “hey, my fault I messed up”, or the ones that always have something happening to them for some reason.