Faults
Faults generated from API requests are .json documents with fault as the object property value. When reading and writing context properties, a path property will usually be available, representing the full property path. A fault may also have children, especially in the case of cortex.invalidArgument.validation, where property validation errors are represented as children, whose path property can be examined to pinpoint the error source.
Here's an example of listing a non-existent object:
$ mdctl api GET /missing{
"object": "fault",
"name": "error",
"code": "kInvalidObject",
"errCode": "cortex.invalidArgument.object",
"status": 400,
"message": "Invalid or unknown object.",
"path": "missing"
}Last updated
Was this helpful?