33 ms·
I think for application status codes it makes sense to always return 200 and do as you have done. Of course, if your API has received bad data then better to r
by neilellis 11y ago
I think for application status codes it makes sense to always return 200 and do as you have done.
Of course, if your API has received bad data then better to return a 400 and a similar payload.
And if your application has caught an exception which is not part of any form of validation then better to return 500 and the payload.
Got to do the best we can with the hand we're dealt hey!