response codes and stats API documentation