Skip to content

Return the error catalog of this installation.

GET
/api/workspace/error-catalog
curl --request GET \
--url https://example.com/api/workspace/error-catalog \
--header 'Authorization: Bearer <token>'

Any active workspace user may read it, including a Service user with a valid API key; no administrative role is needed. The catalog is curated and partial: an answer can carry a code it does not list, and the fallbacks of each covered surface say how to treat one. It holds product definitions only, is the same in every workspace locale and has English descriptions. When comparing installations, compare Revision, ProductVersion and BuildId together with the API base URL that answered.

access_token
string

Optional access token for clients that cannot set Authorization headers. Prefer Authorization: Bearer <token> when possible.

OK

Media typeapplication/json
object
Data

Machine-readable description of the errors this installation answers on the covered API surfaces: what each code means there, its HTTP status and Field, and the safe client reaction. The catalog is curated and partial: an answer can carry a code it does not list, and Moltaro.ErrorCatalog.Models.ErrorCatalogSurfaceCoverageModel.Fallbacks says how to treat one.

object
SchemaVersion
required

Version of this catalog format; it changes only with an incompatible change. New members and new enum values keep the version: ignore members you do not recognize, and read each enum’s description for values you do not recognize.

integer format: int32
Revision
required

Opaque, deterministic identifier of the catalog content (schema version, coverage and entries); equal content has an equal revision on every installation and build. Compare it for equality only.

string
ProductVersion

Product release of the answering API runtime, as in the agent integration manifest. Null for a source build without package identity.

string
nullable
BuildId

Opaque package build identity of the answering API runtime. Null for a source build without package identity.

string
nullable
Coverage
required

What the catalog covers.

object
Description
required

English statement of the covered scope and its limits.

string
Surfaces
required

Covered surfaces with their operations, HTTP status rules and fallbacks.

Array<object>

One covered surface.

object
Surface
required

API surface whose answers a catalog entry describes. Later catalogs can add surfaces: skip the entries and the coverage of a surface you do not recognize.

integer format: int32
Allowed values: 0 1 2 3
Description
required

English description of the surface.

string
Operations
required

Covered operations of the surface.

Array<integer>
Allowed values: 0 1 2 3 4 5 6 7 8
StatusPrecedence
required

HTTP statuses in precedence order: an answer with several errors has the first of these statuses that one of its codes has.

Array<integer>
DefaultStatus
required

HTTP status of an error answer none of whose codes has a status in Moltaro.ErrorCatalog.Models.ErrorCatalogSurfaceCoverageModel.StatusPrecedence.

integer format: int32
Fallbacks
required

Reactions to answers of the surface that no entry describes, one per answer kind.

Array<object>

The reaction to one kind of answer that no entry describes.

object
Answer
required

Kind of answer a catalog fallback applies to. Later catalogs can add kinds: ignore a fallback whose kind you do not recognize, and treat an answer that fits none of the kinds you recognize as UnlistedAnswer (0).

integer format: int32
Allowed values: 0 1 2
Description
required

English description of the answers of this kind.

string
Reaction
required

Safe client reaction to an answer.

object
Outcome
required

What an answer establishes about the operation the request asked for. Later catalogs can add outcomes: treat one you do not recognize like Unknown (0).

integer format: int32
Allowed values: 0 1 2 3
Action
required

Recommended client reaction. Later catalogs can add actions: treat one you do not recognize like SettleOutcome (0).

integer format: int32
Allowed values: 0 1 2 3 4 5 6 7 8
AutomaticRetry
required

Whether a client may repeat the request without a new decision. Later catalogs can add values: treat one you do not recognize like None (0).

integer format: int32
Allowed values: 0 1 2
Conditions
required

English conditions that apply to the reaction, each one checkable by the client.

Array<string>
Guidance
required

English explanation of the reaction.

string
Entries
required

Entries ordered by surface, code and first operation. A code can have several entries on one surface when it means something different for some operations; look an entry up by code, surface and operation, which match at most one entry.

Array<object>

One error code as a surface answers it.

object
Code
required

Exact error code, compared ordinally.

string
Surface
required

API surface whose answers a catalog entry describes. Later catalogs can add surfaces: skip the entries and the coverage of a surface you do not recognize.

integer format: int32
Allowed values: 0 1 2 3
Operations
required

Operations of the surface that can answer with this code.

Array<integer>
Allowed values: 0 1 2 3 4 5 6 7 8
HttpStatus
required

HTTP status of an answer whose only error has this code; Moltaro.ErrorCatalog.Models.ErrorCatalogSurfaceCoverageModel.StatusPrecedence decides between several errors.

integer format: int32
Description
required

English description of the cause.

string
Field
required

Rule for the Field of an error.

object
Kind
required

What the error’s Field contains. Later catalogs can add kinds: for a kind you do not recognize, show Field but do not rely on its value.

integer format: int32
Allowed values: 0 1 2 3 4 5
Values
required

Every request member path Field can name for Moltaro.ErrorCatalog.Models.ErrorCatalogFieldKindEnum.RequestMember and Moltaro.ErrorCatalog.Models.ErrorCatalogFieldKindEnum.RequestMemberOrNone; empty for the other kinds.

Array<string>
Metadata
required

Metadata keys the error can carry; empty when it carries none. Values are strings.

Array<object>

One metadata key an error can carry.

object
Key
required

Exact metadata key.

string
Description
required

English meaning and format of the value.

string
Reaction
required

Safe client reaction to an answer.

object
Outcome
required

What an answer establishes about the operation the request asked for. Later catalogs can add outcomes: treat one you do not recognize like Unknown (0).

integer format: int32
Allowed values: 0 1 2 3
Action
required

Recommended client reaction. Later catalogs can add actions: treat one you do not recognize like SettleOutcome (0).

integer format: int32
Allowed values: 0 1 2 3 4 5 6 7 8
AutomaticRetry
required

Whether a client may repeat the request without a new decision. Later catalogs can add values: treat one you do not recognize like None (0).

integer format: int32
Allowed values: 0 1 2
Conditions
required

English conditions that apply to the reaction, each one checkable by the client.

Array<string>
Guidance
required

English explanation of the reaction.

string
Errors
Array<object>
nullable
object
Code
required
string
nullable
Message
required
string
nullable
Target
string
nullable
Field
string
nullable
Metadata
object
key
additional properties
string
nullable
Type
integer format: int32
Allowed values: 0 1 2
Severity
integer format: int32
Allowed values: 0 1 2
Warnings
Array<object>
nullable
object
Code
required
string
nullable
Message
required
string
nullable
Target
string
nullable
Field
string
nullable
Metadata
object
key
additional properties
string
nullable
Type
integer format: int32
Allowed values: 0 1 2
Severity
integer format: int32
Allowed values: 0 1 2
Success
boolean
Example
{
"Data": {
"Coverage": {
"Surfaces": [
{
"Surface": 0,
"Operations": [
0
],
"Fallbacks": [
{
"Answer": 0,
"Reaction": {
"Outcome": 0,
"Action": 0,
"AutomaticRetry": 0
}
}
]
}
]
},
"Entries": [
{
"Surface": 0,
"Operations": [
0
],
"Field": {
"Kind": 0
},
"Reaction": {
"Outcome": 0,
"Action": 0,
"AutomaticRetry": 0
}
}
]
},
"Errors": [
{
"Type": 0,
"Severity": 0
}
],
"Warnings": [
{
"Type": 0,
"Severity": 0
}
]
}

Unauthorized

Media typeapplication/json
object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
key
additional properties
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}

Forbidden

Media typeapplication/json
object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
key
additional properties
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}