mirror of
https://mau.dev/mautrix/go.git
synced 2026-03-14 22:35:52 +01:00
Add M_UNRECOGNIZED variable
This commit is contained in:
parent
7097f52cb3
commit
fae6bb0b81
1 changed files with 3 additions and 1 deletions
4
error.go
4
error.go
|
|
@ -24,6 +24,8 @@ import (
|
|||
var (
|
||||
// Forbidden access, e.g. joining a room without permission, failed login.
|
||||
MForbidden = RespError{ErrCode: "M_FORBIDDEN"}
|
||||
// Unrecognized request, e.g. the endpoint does not exist or is not implemented.
|
||||
MUnrecognized = RespError{ErrCode: "M_UNRECOGNIZED"}
|
||||
// The access token specified was not recognised.
|
||||
MUnknownToken = RespError{ErrCode: "M_UNKNOWN_TOKEN"}
|
||||
// No access token was specified for the request.
|
||||
|
|
@ -47,7 +49,7 @@ var (
|
|||
MRoomInUse = RespError{ErrCode: "M_ROOM_IN_USE"}
|
||||
// The state change requested cannot be performed, such as attempting to unban a user who is not banned.
|
||||
MBadState = RespError{ErrCode: "M_BAD_STATE"}
|
||||
// The request or entity was too large.
|
||||
// The request or entity was too large.
|
||||
MTooLarge = RespError{ErrCode: "M_TOO_LARGE"}
|
||||
// The resource being requested is reserved by an application service, or the application service making the request has not created the resource.
|
||||
MExclusive = RespError{ErrCode: "M_EXCLUSIVE"}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue