> For AI agents: the complete documentation index is available at https://types-mediawiki-response.pages.dev/zh/llms.txt, the full documentation bundle is available at https://types-mediawiki-response.pages.dev/zh/llms-full.txt.

# Interface: ApiGlobalBlockLegacyError

Defined in: [extensions/globalblocks.ts:146](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/extensions/globalblocks.ts#L146)

One entry of the legacy `error.globalblock` array that `action=globalblock`
writes when a block or unblock fails. Unlike every other module, this one
reports the failure **in-band** under the root `error` key
(`{ error: { globalblock: [...] } }`) instead of a top-level error object, so
that `error` carries no `code`/`info`. The shape is the same under every
`errorformat`.

## Properties

### code

> **code**: `string`

Defined in: [extensions/globalblocks.ts:148](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/extensions/globalblocks.ts#L148)

Machine-readable code, e.g. `globalblocking-notblocked`.

***

### message

> **message**: `string`

Defined in: [extensions/globalblocks.ts:151](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/extensions/globalblocks.ts#L151)

Rendered message text.
