forked from microsoftgraph/msgraph-sdk-dotnet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GraphErrorCode.cs
144 lines (143 loc) · 6.08 KB
/
GraphErrorCode.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
namespace Microsoft.Graph
{
/// <summary>
/// Graph error codes
/// https://developer.microsoft.com/en-us/graph/docs/concepts/errors
/// </summary>
public enum GraphErrorCode
{
/// The caller doesn't have permission to perform the action.
AccessDenied,
/// The app or user has been throttled.
ActivityLimitReached,
/// Access restricted to the item's owner.
AccessRestricted,
/// Authentication cancelled.
AuthenticationCancelled,
/// Authentication failed.
AuthenticationFailure,
/// Failed to get a consistent delta snapshot. Try again later.
CannotSnapshotTree,
/// Max limit on the number of child items was reached.
ChildItemCountExceeded,
/// ETag does not match the current item's value.
EntityTagDoesNotMatch,
/// Declared total size for this fragment is different from that of the upload session.
FragmentLengthMismatch,
/// Uploaded fragment is out of order.
FragmentOutOfOrder,
/// Uploaded fragment overlaps with existing data.
FragmentOverlap,
/// An unspecified error has occurred.
GeneralException,
/// Invalid accept type.
InvalidAcceptType,
/// Invalid parameter format.
InvalidParameterFormat,
/// Name contains invalid characters.
InvalidPath,
/// Invalid query option.
InvalidQueryOption,
/// The specified byte range is invalid or unavailable.
InvalidRange,
/// The request is malformed or incorrect.
InvalidRequest,
/// Invalid start index.
InvalidStartIndex,
/// The image could not be found.
ImageNotFound,
/// The resource could not be found.
ItemNotFound,
/// Lock token does not match existing lock.
LockMismatch,
/// There is currently no unexpired lock on the item.
LockNotFoundOrAlreadyExpired,
/// Lock Owner ID does not match provided ID.
LockOwnerMismatch,
/// ETag header is malformed. ETags must be quoted strings.
MalformedEntityTag,
/// Malware was detected in the requested resource.
MalwareDetected,
/// Max limit on number of Documents is reached.
MaxDocumentCountExceeded,
/// Max file size exceeded.
MaxFileSizeExceeded,
/// Max limit on number of Folders is reached.
MaxFolderCountExceeded,
/// Max file size exceeded.
MaxFragmentLengthExceeded,
/// Max limit on number of Items is reached.
MaxItemCountExceeded,
/// Max query length exceeded.
MaxQueryLengthExceeded,
/// Maximum stream size exceeded.
MaxStreamSizeExceeded,
/// The specified item name already exists.
NameAlreadyExists,
/// The action is not allowed by the system.
NotAllowed,
/// The requested item is not found.
NotFound,
/// The request is not supported by the system.
NotSupported,
/// Parameter Exceeds Maximum Length.
ParameterIsTooLong,
/// Parameter is smaller than minimum value.
ParameterIsTooSmall,
/// Path exceeds maximum length.
PathIsTooLong,
/// Folder hierarchy depth limit reached.
PathTooDeep,
/// Property not updateable.
PropertyNotUpdateable,
/// The requested resource is not found.
Request_ResourceNotFound,
/// The resource being updated has changed since the caller last read it, usually an eTag mismatch.
ResourceModified,
/// Resync required. Replace any local items with the server's version (including deletes)
/// if you're sure that the service was up to date with your local changes when you last sync'd.
/// Upload any local changes that the server doesn't know about.
ResyncApplyDifferences,
/// The delta token is no longer valid, and the app must reset the sync state.
ResyncRequired,
/// Resync required. Upload any local items that the service did not return, and upload any files
/// that differ from the server's version (keeping both copies if you're not sure which one is more up-to-date).
ResyncUploadDifferences,
/// The service is not available. Try the request again after a delay. There may be a Retry-After header.
ServiceNotAvailable,
/// Resource is temporarily read-only.
ServiceReadOnly,
/// Too many requests.
ThrottledRequest,
/// The server, while acting as a proxy, did not receive a timely response from the upstream server it needed
/// to access in attempting to complete the request. May occur together with 503.
Timeout,
/// Client application has been throttled and should not attempt to repeat the request until an amount of time has elapsed.
TooManyRedirects,
/// Too many results requested.
TooManyResultsRequested,
/// Too many terms in the query.
TooManyTermsInQuery,
/// Operation is not allowed because the number of affected items exceeds threshold.
TotalAffectedItemCountExceeded,
/// Data truncation is not allowed.
TruncationNotAllowed,
/// The user has reached their quota limit.
QuotaLimitReached,
/// The caller is not authenticated.
Unauthenticated,
/// Upload session failed.
UploadSessionFailed,
/// Upload session incomplete.
UploadSessionIncomplete,
/// Upload session not found.
UploadSessionNotFound,
/// This document is suspicious and may have a virus.
VirusSuspicious,
/// Zero or fewer results requested.
ZeroOrFewerResultsRequested,
}
}