Class ErrorCodes
Common error codes.
Inherited Members
Namespace: Uniform.Matrix.Protocol.Core
Assembly: Uniform.Matrix.Protocol.Core.dll
Syntax
public static class ErrorCodes
Fields
| Edit this page View SourceBadJson
Request was malformed.
Declaration
public const string BadJson = "M_BAD_JSON"
Field Value
| Type | Description |
|---|---|
| string |
CannotOverwriteMedia
The media already has content, which cannot be replaced.
Declaration
public const string CannotOverwriteMedia = "M_CANNOT_OVERWRITE_MEDIA"
Field Value
| Type | Description |
|---|---|
| string |
Forbidden
Access denied, e.g. wrong password or missing permission.
Declaration
public const string Forbidden = "M_FORBIDDEN"
Field Value
| Type | Description |
|---|---|
| string |
IncompatibleRoomVersion
The room's version is not one the joining server supports.
Declaration
public const string IncompatibleRoomVersion = "M_INCOMPATIBLE_ROOM_VERSION"
Field Value
| Type | Description |
|---|---|
| string |
InvalidParam
A parameter had an invalid value.
Declaration
public const string InvalidParam = "M_INVALID_PARAM"
Field Value
| Type | Description |
|---|---|
| string |
InvalidRoomState
The initial state of a new room is invalid.
Declaration
public const string InvalidRoomState = "M_INVALID_ROOM_STATE"
Field Value
| Type | Description |
|---|---|
| string |
InvalidUsername
The user ID is not valid.
Declaration
public const string InvalidUsername = "M_INVALID_USERNAME"
Field Value
| Type | Description |
|---|---|
| string |
LimitExceeded
Too many requests; see RetryAfter.
Declaration
public const string LimitExceeded = "M_LIMIT_EXCEEDED"
Field Value
| Type | Description |
|---|---|
| string |
MissingParam
A required parameter was missing.
Declaration
public const string MissingParam = "M_MISSING_PARAM"
Field Value
| Type | Description |
|---|---|
| string |
MissingToken
No access token was given.
Declaration
public const string MissingToken = "M_MISSING_TOKEN"
Field Value
| Type | Description |
|---|---|
| string |
NotFound
Requested resource does not exist.
Declaration
public const string NotFound = "M_NOT_FOUND"
Field Value
| Type | Description |
|---|---|
| string |
NotJson
Request body was not JSON.
Declaration
public const string NotJson = "M_NOT_JSON"
Field Value
| Type | Description |
|---|---|
| string |
NotYetUploaded
Media was created with /media/v1/create, but its content has not been uploaded yet.
Declaration
public const string NotYetUploaded = "M_NOT_YET_UPLOADED"
Field Value
| Type | Description |
|---|---|
| string |
RoomInUse
The room alias is already taken.
Declaration
public const string RoomInUse = "M_ROOM_IN_USE"
Field Value
| Type | Description |
|---|---|
| string |
TooLarge
The upload is larger than the server allows.
Declaration
public const string TooLarge = "M_TOO_LARGE"
Field Value
| Type | Description |
|---|---|
| string |
Unauthorized
The request is not, or not correctly, signed by the server it says it is from.
Declaration
public const string Unauthorized = "M_UNAUTHORIZED"
Field Value
| Type | Description |
|---|---|
| string |
Unknown
Unknown server error.
Declaration
public const string Unknown = "M_UNKNOWN"
Field Value
| Type | Description |
|---|---|
| string |
UnknownToken
Access token is not recognized; the session has ended.
Declaration
public const string UnknownToken = "M_UNKNOWN_TOKEN"
Field Value
| Type | Description |
|---|---|
| string |
Unrecognized
Unrecognized endpoint, or a method the endpoint does not support.
Declaration
public const string Unrecognized = "M_UNRECOGNIZED"
Field Value
| Type | Description |
|---|---|
| string |
UnsupportedRoomVersion
The server does not support the requested room version.
Declaration
public const string UnsupportedRoomVersion = "M_UNSUPPORTED_ROOM_VERSION"
Field Value
| Type | Description |
|---|---|
| string |
UserDeactivated
The user is deactivated.
Declaration
public const string UserDeactivated = "M_USER_DEACTIVATED"
Field Value
| Type | Description |
|---|---|
| string |
UserInUse
The user ID is already taken.
Declaration
public const string UserInUse = "M_USER_IN_USE"
Field Value
| Type | Description |
|---|---|
| string |
UserLocked
The account is locked by an admin; the client keeps its session and waits.
Declaration
public const string UserLocked = "M_USER_LOCKED"
Field Value
| Type | Description |
|---|---|
| string |
UserSuspended
The account is suspended by an admin and cannot do this.
Declaration
public const string UserSuspended = "M_USER_SUSPENDED"
Field Value
| Type | Description |
|---|---|
| string |