def METHOD_NAME(self, exception: ApiException):
    try:
        return json.loads(exception.body)
    except Exception as jsonException:
        log.debug(
            f"We failed to parse API exception body as JSON due to {jsonException}. "
            f"Will fallback to use generic template for error message."
        )
        error = {}
        if exception.status == 401:
            error = dict(
                what=self.__what,
                why=f"The request has not been applied because it lacks valid authentication credentials. "
                f"Error returned by control service is {exception.body}",
                consequences=self.__consequences,
                countermeasures="Try to login again using VDK CLI login command."
                "Or set correct api token configuration (see vdk config-help)."
                "Make sure you have permission to execute the given operation."
                "Investigate (google) the error returned by control service."
                "And if all fails try to contact the support team.",
            )
        elif exception.status == 404:
            error = dict(
                what=self.__what,
                why="The requested resource cannot be found. "
                "You may have a spelling mistake or the data job has not been created",
                consequences=self.__consequences,
                countermeasures="Make sure that the data job name and team name are spelled correctly "
                "(it is case-sensitive) . "
                "Make sure you have run `vdk create --cloud` before doing this operation on a data job.",
            )
        else:
            error = dict(
                what=error.get("what", self.__what),
                why=error.get(
                    "why",
                    f"Http error: status: {exception.status} - {exception.body}",
                ),
                consequence=error.get("consequences", self.__consequences),
                countermeasure=error.get(
                    "countermeasures",
                    "See error and try to resolve it or open ticket to SRE team.",
                ),
            )
        return error