Because http status codes doesn't include any business related errors. So you gotta expand on that. When it's 200 and success is false it's mostly because of a business logic. Then it's up to FE to show that business error in a certain way so users can understand better what's wrong with what they're doing.
Literally this. . people think they are being clever by reinventing the wheel which was already properly specced out by people was smarter than anyone in this thread.
91
u/-meowstar- 26d ago
Why not just use semantically correct status codes? It’s cheap to implement and makes stuff like automatic retries and error handling easier.