rocketchat-jira-trigger
                                
                                 rocketchat-jira-trigger copied to clipboard
                                
                                    rocketchat-jira-trigger copied to clipboard
                            
                            
                            
                        Detect and log CAPTCHA challenges
If CAPTCHA is enabled on the JIRA server, it might respond with a 403 message that looks like this:

These messages should be logged (ERROR level?) to clearly convey that a manual CAPTCHA verification is required.
Essentially this boils down to:
If any call to the JIRA API responds with status code 403, check if the header X-Authentication-Denied-Reason contains CAPTCHA_CHALLENGE. If so, throw an appropriate exception instructing the user to re-login using the browser.