Response #

The Response Payload is a standardized response sent by Kuzzle in JSON format.

PropertyTypeDescription
actionstringAPI action name
collectionstringCollection name, or null if no collection was involved
controllerstringAPI controller name
deprecationsobject[]Deprecation notices about the request (each with a version and a message). Only filled when Kuzzle runs with NODE_ENV=development
errorErrorPayloadAPI error, or null if there was no error
headersobjectResponse headers set by the API action (or a plugin), except restricted ones such as set-cookie
indexstringIndex name, or null if no index was involved
nodestringUnique identifier of the node who processed the request
requestIdstringKuzzleRequest unique identifier
resultanyAPI action result, or null if an error occurred
roomstringRoom unique identifier (WebSocket responses only)
statusnumberHTTP status code
volatileobjectKuzzleRequest volatile data

See also the ResponsePayload framework type.