diff --git a/msgraph/accesspackageresource.go b/msgraph/accesspackageresource.go index 151f0818..92f6c01a 100644 --- a/msgraph/accesspackageresource.go +++ b/msgraph/accesspackageresource.go @@ -83,7 +83,7 @@ func (c *AccessPackageResourceClient) Get(ctx context.Context, catalogId string, accessPackageResources := data.AccessPackageResources if len(accessPackageResources) == 0 { - return nil, status, fmt.Errorf("No accessPackageResource found with catalogId %v and originId %v", catalogId, originId) + return nil, http.StatusNotFound, fmt.Errorf("No accessPackageResource found with catalogId %v and originId %v", catalogId, originId) } return &accessPackageResources[0], status, nil diff --git a/msgraph/accesspackageresourcerolescope.go b/msgraph/accesspackageresourcerolescope.go index ca4435fd..068c0197 100644 --- a/msgraph/accesspackageresourcerolescope.go +++ b/msgraph/accesspackageresourcerolescope.go @@ -148,7 +148,7 @@ func (c *AccessPackageResourceRoleScopeClient) Get(ctx context.Context, accessPa } if accessPackageResourceRoleScope.ID == nil { - return nil, status, fmt.Errorf("AccessPackageResourceRoleScopeClient.BaseClient.Get(): Could not find accessPackageResourceRoleScope ID") + return nil, http.StatusNotFound, fmt.Errorf("AccessPackageResourceRoleScopeClient.BaseClient.Get(): Could not find accessPackageResourceRoleScope ID %s", id) } return &accessPackageResourceRoleScope, status, nil