handle error results, return nil or empty array on anything other than 200