Well, created my personal API server, setted proper response codes, content and cache control(Ex. 404 Not Found, application/json, no-cache, must-revalidate) What else could be setted (in headers) to achieve “perfect” API ?
This API is public, but in future there are plans to create private API for registered user’s. Is there any header’s “settings” for this kind of API (like Unauthorized, WWW-Authenticate etc.)
You can add a parameter to suppress HTTP codes. Twitter has
suppress_response_codesparameter. Quote fromdev.twitter.comHere is some resources for good RESTful api design.