Translations:Manual:Hooks/33/en

In many cases where extensions are allowed to cancel an action, the hook will provide a Status object where a localised error can be added. This is preferred over returning a raw string as that would simply present a generic "Internal error".