Another important aspect of a good RESTful API is to use HTTP codes in a sensible way. The HTTP specification defines a lot of standard codes. They should cover 99 percent of what a good API needs to communicate to its users. The following list contains the most important codes, the ones every API should use and every developer should know:
For a more detailed list, see http://www.restapitutorial.com/httpstatuscodes.html.