Handle Jira errors in a better way