The function may return a BT_GATT_ERR which is a negative value that cannot be returned as uint8_t. Change the function to use int instead and document the return values. Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>