MarkLogic 10 Product Documentation
xdmp:set-response-code

xdmp:set-response-code(
   $code as xs:integer,
   $message as xs:string
) as empty-sequence()

Summary

Sets the response code and message.

Parameters
code The response code.
message The response message.

Example

xdmp:set-response-code(204,"No Content")
Powered by MarkLogic Server | Terms of Use | Privacy Policy