Added finer control over exceptions thrown when JIRA authentication errors occur