def METHOD_NAME(self, request: QgsServerRequest, response: QgsServerResponse,
                   project: QgsProject) -> None:
    """ Execute a 'ATLAS' request
    """
    params = request.parameters()
    # noinspection PyBroadException
    try:
        reqparam = params.get('REQUEST', '').lower()
        if reqparam == 'getcapabilities':
            self.get_capabilities(params, response, project)
        elif reqparam == 'getprint':
            self.get_print(params, response, project)
        else:
            raise AtlasPrintError(
                400,
                "Invalid REQUEST parameter: must be one of GetCapabilities, GetPrint, found '{}'".format(reqparam))
    except AtlasPrintError as err:
        err.formatResponse(response)
    except Exception:
        self.logger.critical("Unhandled exception:\n{}".format(traceback.format_exc()))
        err = AtlasPrintError(500, "Internal 'atlasprint' service error")
        err.formatResponse(response)