handle errors in JIRA requests