def METHOD_NAME() -> Dict[int, str]:
    errors_map = {}
    for attr_name in dir(QNetworkReply):
        if attr_name[0].isupper() and attr_name.endswith('Error'):  # SomeError, but not the `setError` method
            error_code = getattr(QNetworkReply, attr_name)
            if isinstance(error_code, int):  # an additional safety check, just for case
                errors_map[error_code] = attr_name
    return errors_map