Loading TOC...
Messages and Codes Reference Guide (PDF)

Messages and Codes Reference Guide — Chapter 19

RESTAPI Messages

RESTAPI-CONTENTNOVERSION

Message Text

No content version supplied: variable1

Cause

The content-versions instance configuration property is set to "required", but the request does not include a version id in an If-match header. MarkLogic Server returns status 403.

Response

Supply a version id in the If-Match header, or modify the content versioning policy.

RESTAPI-CONTENTWRONGVERSION

Message Text

Content version mismatch: variable1

Cause

In a conditional PUT, the content version id does not match the version supplied in the If-match header. MarkLogic Server returns status 412.

RESTAPI-EXTNERR

Message Text

Extension Error: code: variable1 message: variable2 format: variable3 document: variable4

RESTAPI-INTERNALERROR

Message Text

Internal error: variable1

Cause

An unexpected error occurred. See the request body for details. MarkLogic Server returns status 500.

RESTAPI-INVALIDCONTENT

Message Text

Invalid content: variable1

Cause

The request payload does not have the expected format. For example, contains syntatically invalid XML or JSON, or contains an XML node or JSON object with the wrong structure. MarkLogic Server returns status 400.

Response

Correct the request payload.

RESTAPI-INVALIDMIMETYPE

Message Text

Invalid mime type: reason: variable1

Cause

The request payload has unexpected MIME type. MarkLogic Server returns status 415.

Response

Set the Content-type to a supported MIME type.

RESTAPI-INVALIDREQ

Message Text

Invalid request: reason: variable1

Cause

The request is malformed. For example, it includes unrecognized parameters, an unsupported combination of parameters, or uses an HTTP method not supported by this service. MarkLogic Server returns status 400.

Response

Correct the request.

RESTAPI-INVALIDRESULT

Message Text

Invalid result: reason: variable1

Cause

The operation produced an unexpected result, such as repair producing multiple documents when inserting an XML document. MarkLogic Server returns status 400.

RESTAPI-NODOCUMENT

Message Text

Resource or document does not exist: category: variable1 message: variable2

Cause

The requested document or other asset does not exist. MarkLogic Server returns status 404.

Response

Correct the request.

RESTAPI-NORANGEMATCH

Message Text

No Range Matched: range: variable1

Cause

A range request on a binary document cannot be satisfied. MarkLogic Server returns status 416.

Response

Correct the request.

RESTAPI-OPENTRANSACTIONS

Message Text

Open Transactions: variable1

Cause

You attempted to remove a MarkLogic REST API instance with open transactions. MarkLogic Server returns status 409.

Response

Resolve the open transactions and try again.

RESTAPI-SRVEXERR

Message Text

Extension Error: code: variable1 message: variable2 document: variable3

RESTAPI-UNSUPPORTEDPROP

Message Text

Unsupported property: : variable1

Cause

The property is invalid or deprecated. MarkLogic Server returns status 400.

Response

Get the property list at /v1/config/properties to see all supported properties.

« Previous chapter
Next chapter »
Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy