ReferenceGenerated APIREADMEfunctionsgetAPIErrorBodyVersion: 57.2.0On this pagegetAPIErrorBody getAPIErrorBody(error): Record<string, unknown> Creates an APIError body to send to clients as JSON. Parameters error APIError Returns Record<string, unknown> Deprecated Use error.toJSON() instead.Discuss this page