API: Fix labels return code

##### What does this MR do?

This PR fixes the return codes of labels API in case of errors. It's better to return 400 for invalid parameters than 409. Thanks @jubianchi