def METHOD_NAME(exc: HTTPStatusError) -> str:
    msg = str(exc)
    with suppress(Exception):
        error = exc.response.json()["error"]
        for err in error["errors"]:
            msg += "\n{code}: {message}".format(**err)
    return msg