I think the empty array is already returned with the error code 404. But I'll see if we can raise an improvement for the search API to return 200 instead of 404.