appdotnet / api-spec

App.net API Documentation is on the web at https://developers.app.net. Source for these docs is in the new-docs branch here. Please use the issue tracker and submit pull requests! Help us build the real-time social service where users and developers come first, not advertisers.
https://developers.app.net
950 stars 98 forks source link

Always return a numeric result code in ALL META data (NOT just 200) #334

Closed hybotix closed 11 years ago

hybotix commented 11 years ago

If you return a numeric result code in ALL META data, it would be MUCH easier to check for errors and print out the error message. This would be SO useful, and would really help choose actions for API level errors that might not be trappable otherwise. Sometimes, knowing what type of error occurred can make code and processing more understandable and easier to maintain.

ADN could tell developers much more about what is happening with the API by returning an appropriate numeric result/error code. Let a result code 200 actually mean all is well and go on with normal processing. :)

berg commented 11 years ago

Can you help me understand where you're not seeing a numeric result code? Perhaps provide a sample response body and headers?

hybotix commented 11 years ago

Yes, I will track this down again and send you the info.

8-Dale

On Sat, Apr 20, 2013 at 4:09 PM, Bryan Berg notifications@github.comwrote:

Can you help me understand where you're not seeing a numeric result code? Perhaps provide a sample response body and headers?

— Reply to this email directly or view it on GitHubhttps://github.com/appdotnet/api-spec/issues/334#issuecomment-16712991 .

berg commented 11 years ago

I'm going to close this - feel free to reopen if you have some examples.