bridgev2/errors: add shared error for unknown login flow ID

This commit is contained in:
Tulir Asokan 2024-11-19 17:07:51 +02:00
commit c8e197a4f9

View file

@ -64,6 +64,11 @@ var (
ErrPowerLevelsNotSupported error = WrapErrorInStatus(errors.New("this bridge does not support changing group power levels")).WithIsCertain(true).WithErrorAsMessage().WithSendNotice(false)
)
// Common login interface errors
var (
ErrInvalidLoginFlowID error = RespError(mautrix.MNotFound.WithMessage("Invalid login flow ID"))
)
// RespError is a class of error that certain network interface methods can return to ensure that the error
// is properly translated into an HTTP error when the method is called via the provisioning API.
//