Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoCreateEvent = errors.New("no create event in room") ErrIntercepted = errors.New("request intercepted") ErrNoNotaries = errors.New("no notary servers were available") ErrContextMissing = errors.New("route context is missing required information") ErrDeniedByACL = errors.New("server is forbidden by ACLs") )
View Source
var ( // MUserLocked indicates that the account has been locked and cannot be used. MUserLocked = mautrix.RespError{ ErrCode: "M_USER_LOCKED", StatusCode: http.StatusForbidden, Err: "This account has been locked and cannot be used at this time.", } // MUserSuspended indicates that the account has been suspended and generally cannot modify data even if it can // read. MUserSuspended = mautrix.RespError{ ErrCode: "M_USER_SUSPENDED", StatusCode: http.StatusForbidden, Err: "This account has been suspended and cannot modify data.", } // MMissingParam indicates a required parameter is missing. MMissingParam = mautrix.RespError{ ErrCode: "M_MISSING_PARAM", StatusCode: http.StatusBadRequest, Err: "Missing parameter", } // MWeakPassword indicates the provided password does not meet the server's requirements, // such as minimum length or complexity. MWeakPassword = mautrix.RespError{ ErrCode: "M_WEAK_PASSWORD", StatusCode: http.StatusBadRequest, Err: "Password does not meet the server's requirements.", } // MNotYetUploaded indicates that the requested media is not yet fully uploaded. MNotYetUploaded = mautrix.RespError{ ErrCode: "M_NOT_YET_UPLOADED", StatusCode: http.StatusGatewayTimeout, Err: "The requested media is not yet available. Try again later.", } // MCannotOverwriteMedia indicates that an attempt was made to overwrite existing media. MCannotOverwriteMedia = mautrix.RespError{ ErrCode: "M_CANNOT_OVERWRITE_MEDIA", StatusCode: http.StatusConflict, Err: "MXC already has populated data", } // MUnableToGrantJoin indicates that the server is unable to grant a join request, // but another server may be able to. MUnableToGrantJoin = mautrix.RespError{ ErrCode: "M_UNABLE_TO_GRANT_JOIN", StatusCode: http.StatusBadRequest, Err: "Unable to grant join, another server may be able to", } // MUnableToAuthoriseJoin indicates that the server is unable to authorise a join request, // typically as a result of being unable to check the `allow` rooms. MUnableToAuthoriseJoin = mautrix.RespError{ ErrCode: "M_UNABLE_TO_AUTHORISE_JOIN", StatusCode: http.StatusBadRequest, Err: "Unable to authorise join request", } )
Functions ¶
func RateLimited ¶
RateLimited returns a mautrix.RespError with additional data to indicate the length of a rate limit.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.