Last modified: 2009-07-12 12:38:28 UTC
If a wiki is set to read only mode, this information should be available via the api. I suggest to include the read-only message as specified via $wgReadOnly or $wgReadOnlyFile in the information returned by a meta=siteinfo query.
Fixed in r50130
Can this also be applied to errors encountered when performing an action? For example, on action=edit: { "code": "readonly", "info": "The wiki is currently in read-only mode" } to something exposing wfReadOnlyReason(), eg: { "code": "readonly", "info": "The wiki is currently in read-only mode (reason: blah blah blah)" }
Done in r53132.