Fix labels return code
Merge pull request #7527 from Razer6/api_labels_return_code

API: Fix labels return code