News for hackers. Stuff that matters.
Re:Facebook Relay: An Evil And/Or Incompetent Attack on REST by neilellis on Monday October 19, 2015 @04:13PM (#10415383)
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!

There are no comments on this comment yet.