The message_list field in a JSON response contains an array of diagnostic objects. These provide feedback on the success, failure, or warnings of a request.
Message Status Codes
| Status | Type | Description |
|---|
2 or 3 | Error | Request rejected or could not be fully processed (3 is a serious error). |
1 | Warning | A non-fatal issue. |
0 | Plain | Informational message. |
-3 | Success | A success message. |
-5 | Info Note | An informational note about the preceding message. |
| Other negative | Note | Highlights that are not full errors. |
Message Object Fields
message: A human-readable, formatted-text string. Formats are indicated by a leading sigil: <0> (plain text), <1> (Markdown), or <5> (HTML).field: The name of the parameter or submission field the message concerns.pos1, pos2: Byte offsets of the span in the UTF-8-encoded value of the field.context: An array ["excerpt", pos1, pos2] bundling an excerpt with byte offsets for easier client-side rendering.
{
"ok": false,
"message_list": [
{
"status": 2,
"field": "abstract",
"message": "<0>Entry required to complete submission"
},
{
"status": 1,
"field": "other_topics",
"message": "<0>Please avoid superlatives",
"context": ["Extremely interesting ideas", 0, 9]
}
]
}