Il giorno mercoledì 25 gennaio 2017 18:16:33 UTC+1, JohnGB ha scritto: > > I have an HTTP API written in Go, and to give more fine grained responses > to the client app, we return our own error codes along with the standard > HTTP status codes Along a similar line to what Twitter does with its > error codes <https://dev.twitter.com/overview/api/response-codes>. >
Since it is an HTTP Api, what about returning a standard HTTP status line, maybe with some non standard status code) and additional details about the error in the response body, JSON encoded? > [...] Regards Manlio -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.