remove warnings and update error messages in RESTAPI func keys
Merge branch '4933_func_key_create'