def METHOD_NAME(self):
    org = self.organization
    integration = self.integration
    responses.add(
        responses.GET,
        'https://jira.example.org/rest/api/2/search/?jql=id="HSP-1"',
        status=502,
        body="<p>We are down</p>",
    )
    self.login_as(self.user)
    path = reverse("sentry-extensions-jiraserver-search", args=[org.slug, integration.id])
    resp = self.client.get(f"{path}?field=externalIssue&query=HSP-1")
    assert resp.status_code == 400