Core
Write Plugins v1.x
1

You are currently looking at the documentation of a previous version of Kuzzle. We strongly recommend that you use the latest version. You can also use the version selector in the top menu.

PartialError #

Partial request success.

Constructor #

new context.error.PartialError(message, failures);

ArgumentsTypeDescription
message
string
Error message
failuresKuzzleError[]List of encountered errors

Status Code #

206

Example #

const err = new context.errors.PartialError('error message', [
  new context.errors.BadRequestError('[request part] invalid format'),
  new context.errors.ForbiddenError('[other request part] forbidden')
]);