|
|
|
|
|
by nonconvergent
2937 days ago
|
|
The type of status/error matters. It's how your communicate, server to client. Think about your normal interactions with problem solving as a team. What's more useful, a teammate who tells you when there's a problem what the problem is or a teammate who hides things, obfuscates, and makes random jokes? 400 tells you asked in a way that wasn't understood. 401 says you're unauthorized and 403 says you're not allowed (similar but potentially different implications, not my favorite nuance but it's a common example that might come up) 504 says there's a problem communicating between the two of you. 404 says that your data doesn't exist. 500 says the server is having problems doing the thing and it's completely out of your hands. 418 says "I'm a teapot" What's more useful data? |
|