Which HTTP status code shall I return, in my API, in case of non-critical server errors?
For example, SomeMethod
is called, but fails, because of null passing, or maybe some errors while trying to access database, whatever.
I thought about 500 code, but it's used when server doesn't work at all,
while SomeMethod
works only if everything is correct.
Of course, body of response contains errors and their descriptions.