79378956

Date: 2025-01-22 19:14:14
Score: 2
Natty:
Report link

From my experience, every company decides the format for itself. Sometimes it's just enough to rely on REST error codes and return an empty body. Sometimes the team chooses to use their own error codes (and in that case error details can be found in API docs), in my current company we use "message" and "description" json fields in all our APIs but I can't say there is really some standard or best practice.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: malyshchyk