- Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy patherror_codes.go
More file actions
Latest commit
173 lines (127 loc) · 6.76 KB
/
Copy patherror_codes.go
File metadata and controls
173 lines (127 loc) · 6.76 KB
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
package jmap
// Code generated using jmap-errors DO NOT EDIT.
// ProblemPrefix is added to corresponding error code when it is reported
// as a problem type in request-level error.
constProblemPrefixErrorCode="urn:ietf:params:jmap:error:"
typeErrorCodestring
const (
// The accountId does not correspond to a valid account.
CodeAccountNotFoundErrorCode="accountNotFound"
// The accountId given corresponds to a valid account, but the account does
// not support this method or data type.
CodeAccountNotSupportedByMethodErrorCode="accountNotSupportedByMethod"
// This method call would modify state in an account that is read-only (as
// returned on the corresponding Account object in the JMAP Session resource).
CodeAccountReadOnlyErrorCode="accountReadOnly"
// An anchor argument was supplied, but it cannot be found in the results of
// the query.
CodeAnchorNotFoundErrorCode="anchorNotFound"
// The server forbids duplicates and the record already exists in the target
// account. An existingId property of type Id MUST be included on the error
// object with the id of the existing record.
CodeAlreadyExistsErrorCode="alreadyExists"
// The server cannot calculate the changes from the state string given by the
// client.
CodeCannotCalculateChangesErrorCode="cannotCalculateChanges"
// The action would violate an ACL or other permissions policy.
CodeForbiddenErrorCode="forbidden"
// The fromAccountId does not correspond to a valid account.
CodeFromAccountNotFoundErrorCode="fromAccountNotFound"
// The fromAccountId given corresponds to a valid account, but the account
// does not support this data type.
CodeFromAccountNotSupportedByMethodErrorCode="fromAccountNotSupportedByMethod"
// One of the arguments is of the wrong type or otherwise invalid, or a
// required argument is missing.
CodeInvalidArgumentsErrorCode="invalidArguments"
// The PatchObject given to update the record was not a valid patch.
CodeInvalidPatchErrorCode="invalidPatch"
// The record given is invalid.
CodeInvalidPropertiesErrorCode="invalidProperties"
// The id given cannot be found.
CodeNotFoundErrorCode="notFound"
// The content type of the request was not application/json or the request did
// not parse as I-JSON.
CodeNotJSONErrorCode="notJSON"
// The request parsed as JSON but did not match the type signature of the
// Request object.
CodeNotRequestErrorCode="notRequest"
// The create would exceed a server-defined limit on the number or total size
// of objects of this type.
CodeOverQuotaErrorCode="overQuota"
// Too many objects of this type have been created recently, and a
// server-defined rate limit has been reached. It may work if tried again
// later.
CodeRateLimitErrorCode="rateLimit"
// The total number of actions exceeds the maximum number the server is
// willing to process in a single method call.
CodeRequestTooLargeErrorCode="requestTooLarge"
// The method used a result reference for one of its arguments, but this
// failed to resolve.
CodeInvalidResultReferenceErrorCode="invalidResultReference"
// An unexpected or unknown error occurred during the processing of the call.
// The method call made no changes to the server's state.
CodeServerFailErrorCode="serverFail"
// Some, but not all expected changes described by the method occurred. The
// client MUST re-synchronise impacted data to determine server state. Use of
// this error is strongly discouraged.
CodeServerPartialFailErrorCode="serverPartialFail"
// Some internal server resource was temporarily unavailable. Attempting the
// same operation later (perhaps after a backoff with a random factor) may
// succeed.
CodeServerUnavailableErrorCode="serverUnavailable"
// This is a singleton type, so you cannot create another one or destroy the
// existing one.
CodeSingletonErrorCode="singleton"
// An ifInState argument was supplied and it does not match the current state.
CodeStateMismatchErrorCode="stateMismatch"
// The action would result in an object that exceeds a server-defined limit
// for the maximum size of a single object of this type.
CodeTooLargeErrorCode="tooLarge"
// There are more changes than the client's maxChanges argument.
CodeTooManyChangesErrorCode="tooManyChanges"
// The client included a capability in the "using" property of the request
// that the server does not support.
CodeUnknownCapabilityErrorCode="unknownCapability"
// The server does not recognise this method name.
CodeUnknownMethodErrorCode="unknownMethod"
// The filter is syntactically valid, but the server cannot process it.
CodeUnsupportedFilterErrorCode="unsupportedFilter"
// The sort is syntactically valid, but includes a property the server does
// not support sorting on, or a collation method it does not recognise.
CodeUnsupportedSortErrorCode="unsupportedSort"
// The client requested an object be both updated and destroyed in the same
// /set request, and the server has decided to therefore ignore the update.
CodeWillDestroyErrorCode="willDestroy"
// The mailbox still has at least one child mailbox. The client MUST remove
// these before it can delete the parent mailbox.
CodeMailboxHasChildErrorCode="mailboxHasChild"
// The mailbox has at least one message assigned to it and the
// onDestroyRemoveMessages argument was false.
CodeMailboxHasEmailErrorCode="mailboxHasEmail"
// At least one blob id referenced in the object doesn't exist.
CodeBlobNotFoundErrorCode="blobNotFound"
// The change to the email's keywords would exceed a server-defined maximum.
CodeTooManyKeywordsErrorCode="tooManyKeywords"
// The change to the email's mailboxes would exceed a server-defined maximum.
CodeTooManyMailboxesErrorCode="tooManyMailboxes"
// The email to be sent is invalid in some way.
CodeInvalidEmailErrorCode="invalidEmail"
// The [RFC5321] envelope (supplied or generated) has more recipients than the
// server allows.
CodeTooManyRecipientsErrorCode="tooManyRecipients"
// The [RFC5321] envelope (supplied or generated) does not have any rcptTo
// emails.
CodeNoRecipientsErrorCode="noRecipients"
// The rcptTo property of the [RFC5321] envelope (supplied or generated)
// contains at least one rcptTo value which is not a valid email for sending
// to.
CodeInvalidRecipientsErrorCode="invalidRecipients"
// The server does not permit the user to send an email with the [RFC5321]
// envelope From.
CodeForbiddenMailFromErrorCode="forbiddenMailFrom"
// The server does not permit the user to send an email with the [RFC5322]
// From header field of the email to be sent.
CodeForbiddenFromErrorCode="forbiddenFrom"
// The user does not have permission to send at all right now.
CodeForbiddenToSendErrorCode="forbiddenToSend"
)