Core
Framework v2.x
2

KuzzleError #

Inherits from the standard Javascript Error object: abstract class inherited by all Kuzzle error objects.

This class can be used to create new standardized Kuzzle error objects for API responses.


Copied to clipboard!
constructor(message: string, status: number, id?: string, code?: number)

Argument Type Description
message
string
Error message
status
number
Error status code (Kuzzle's API errors follow the HTTP standard)
id
string
(optional) Error unique name
code
number
(optional) Error unique code