def METHOD_NAME(self):
    payload_categories = {}
    payload_featured_snaps = {}
    responses.add(
        responses.Response(
            method="GET",
            url=self.categories_api_url,
            json=payload_categories,
            status=200,
        )
    )
    responses.add(
        responses.Response(
            method="GET",
            url=self.featured_snaps_api_url,
            json=payload_featured_snaps,
            status=500,
        )
    )
    response = self.client.get(self.endpoint_url)
    self.assertEqual(len(responses.calls), 2)
    self.assertEqual(response.status_code, 502)
    self.assert_template_used("50X.html")