Skip to content

Commit d13373f

Browse files
committed
Fix ordering of CS API common error codes
I suspect that I forgot to rebase matrix-org#2315 after matrix-org#2336 was merged (or vice versa). This PR restores the alphabetical ordering.
1 parent 2192bfa commit d13373f

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

content/client-server-api/_index.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,25 @@ state (e.g.: sending messages, account data, etc) and not routes which
126126
only read state (e.g.: [`/sync`](#get_matrixclientv3sync),
127127
[`/user/{userId}/account_data/{type}`](#get_matrixclientv3useruseridaccount_datatype), etc).
128128

129+
`M_UNKNOWN`
130+
: An unknown error has occurred.
131+
132+
`M_UNKNOWN_DEVICE`
133+
: {{% added-in v="1.17" %}} The device ID supplied by the application service does
134+
not belong to the user ID during [identity assertion](/application-service-api/#identity-assertion).
135+
136+
`M_UNKNOWN_TOKEN`
137+
: The access or refresh token specified was not recognised.
138+
139+
: An additional response parameter, `soft_logout`, might be present on the
140+
response for 401 HTTP status codes. See [the soft logout
141+
section](#soft-logout) for more information.
142+
143+
`M_UNRECOGNIZED`
144+
: The server did not understand the request. This is expected to be returned with
145+
a 404 HTTP status code if the endpoint is not implemented or a 405 HTTP status
146+
code if the endpoint is implemented, but the incorrect HTTP method is used.
147+
129148
`M_USER_LIMIT_EXCEEDED`
130149
: {{% added-in v="1.18" %}} The request cannot be completed because the user has
131150
exceeded (or the request would cause them to exceed) a limit associated with
@@ -157,25 +176,6 @@ limit is a hard limit that cannot be increased.
157176
}
158177
```
159178

160-
`M_UNKNOWN`
161-
: An unknown error has occurred.
162-
163-
`M_UNKNOWN_DEVICE`
164-
: {{% added-in v="1.17" %}} The device ID supplied by the application service does
165-
not belong to the user ID during [identity assertion](/application-service-api/#identity-assertion).
166-
167-
`M_UNKNOWN_TOKEN`
168-
: The access or refresh token specified was not recognised.
169-
170-
: An additional response parameter, `soft_logout`, might be present on the
171-
response for 401 HTTP status codes. See [the soft logout
172-
section](#soft-logout) for more information.
173-
174-
`M_UNRECOGNIZED`
175-
: The server did not understand the request. This is expected to be returned with
176-
a 404 HTTP status code if the endpoint is not implemented or a 405 HTTP status
177-
code if the endpoint is implemented, but the incorrect HTTP method is used.
178-
179179
`M_USER_LOCKED`
180180
: The account has been [locked](#account-locking) and cannot be used at this time.
181181

0 commit comments

Comments
 (0)