Interface ApiError
Defined in: warp-drive-packages/core/src/types/spec/error.ts:18
Represents a single error in the errors member of a {json:api} document.
Example
{
"status": "422",
"source": { "pointer": "/data/attributes/name" },
"title": "Invalid Attribute",
"detail": "name cannot be blank"
}Properties
code?
optional code?: string;Defined in: warp-drive-packages/core/src/types/spec/error.ts:52
an application-specific error code, expressed as a string value
detail?
optional detail?: string;Defined in: warp-drive-packages/core/src/types/spec/error.ts:31
a human-readable explanation specific to this occurrence of the problem
id?
optional id?: string;Defined in: warp-drive-packages/core/src/types/spec/error.ts:22
a unique identifier for this particular occurrence of the problem
links?
optional links?: object;Defined in: warp-drive-packages/core/src/types/spec/error.ts:35
links related to the error
about?
optional about?: Link;a link that leads to further details about this particular occurrence of the problem
type?
optional type?: Link;a link that identifies the type of error that this particular error is an instance of
meta?
optional meta?: ObjectValue;Defined in: warp-drive-packages/core/src/types/spec/error.ts:73
non-standard meta-information about the error
source?
optional source?: object;Defined in: warp-drive-packages/core/src/types/spec/error.ts:56
an object containing references to the primary source of the error
header?
optional header?: string;the name of a single request header which caused the error
parameter?
optional parameter?: string;the URI query parameter that caused the error
pointer
pointer: string;a JSON Pointer to the value in the request document that caused the error
status?
optional status?: string;Defined in: warp-drive-packages/core/src/types/spec/error.ts:48
the HTTP status code applicable to this problem, expressed as a string value
title?
optional title?: string;Defined in: warp-drive-packages/core/src/types/spec/error.ts:27
a short, human-readable summary of the problem that should not change from occurrence to occurrence of the problem