Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I usually create an abstraction like this in an API to require all returned errors to come with some sort of machine readable code. You either have to classify this response with an existing code in the list or add a new one. That list then gets generated as part of the documentation so consumers are getting possible error states straight from the code (without having to look at said code).


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: