def METHOD_NAME(self, request, pk=None, format=None):
    try:
        council = Council.objects.get(pk=pk)
    except ObjectDoesNotExist:
        return Response({"detail": "Not found."}, 404)
    except Exception:
        return Response({"detail": "Internal server error"}, 500)
    return Response(
        CouncilGeoSerializer(council, context={"request": request}).data
    )