error handling w missing/incorrect api token