MarkLogic Server 11.0 Product Documentation
xdmp.setResponseCode

xdmp.setResponseCode(
   code as Number,
   message as String
) as null

Summary

Sets the response code and message.

Parameters
code The response code.
message The response message.

Example

xdmp.setResponseCode(204,"No Content");
Powered by MarkLogic Server | Terms of Use | Privacy Policy