reporting server error to the client instead of empty array