Add documentation for REST API response codes