REST API Http status code best practices
问题 We are writing a REST API that's going to be exposed publicly and used by lot of third party developers. I am looking at best practices for http status codes especially in error cases. Our application has lots of components internally to which the API is the interface. If there are any errors in the internal components, should I return a 500 with appropriate error message ? When going through SO, I found some blogs / SO threads which suggested different ways but none of them had a concrete