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, and this page is available as Markdown at https://types-mediawiki-response.pages.dev/zh/api/core/ApiModernErrorResponse.md.
  • 中文
  • Interface: ApiModernErrorResponse

    Defined in: envelope/index.ts:209

    Error response under a modern errorformat: an errors array plus top-level docref.

    Extends

    Properties

    batchcomplete?

    optional batchcomplete?: true

    Defined in: envelope/index.ts:178

    Present and true when all data for the current batch of pages has been returned. Continuation may still be ongoing: the generator runs again for the next batch of pages, and list/meta modules may continue independently. Serialized as a real boolean under formatversion=2.

    Inherited from

    ApiEnvelope.batchcomplete


    curtimestamp?

    optional curtimestamp?: string

    Defined in: envelope/index.ts:187

    Current server time (ISO 8601), present when the request set curtimestamp.

    Inherited from

    ApiEnvelope.curtimestamp


    docref?

    optional docref?: string

    Defined in: envelope/index.ts:214

    Docs link plus deprecation notices (top-level under modern errorformat).


    errorlang?

    optional errorlang?: string

    Defined in: envelope/index.ts:199

    Language error messages are rendered in (responselanginfo=1).

    Inherited from

    ApiEnvelope.errorlang


    errors

    errors: ApiMessage[]

    Defined in: envelope/index.ts:211

    Every error raised by the request; at least one entry is present.


    requestid?

    optional requestid?: string

    Defined in: envelope/index.ts:190

    Opaque value echoed back from the request's requestid parameter.

    Inherited from

    ApiEnvelope.requestid


    servedby?

    optional servedby?: string

    Defined in: envelope/index.ts:184

    Identifier of the server that handled the request. Present by default on error responses; on successful responses only when explicitly requested.

    Inherited from

    ApiEnvelope.servedby


    trace?

    optional trace?: string

    Defined in: envelope/index.ts:217

    PHP backtrace, when $wgShowExceptionDetails is on (non-usage exceptions).


    uselang?

    optional uselang?: string

    Defined in: envelope/index.ts:196

    Language of the interface strings in the response (responselanginfo=1).

    Inherited from

    ApiEnvelope.uselang


    warnings?

    optional warnings?: ApiWarnings

    Defined in: envelope/index.ts:193

    Non-fatal warnings; shape depends on errorformat (see ApiWarnings).

    Inherited from

    ApiEnvelope.warnings