xdmp:get-response-code() as item()*
Returns two nodes, the first containing the HTTP response code and the second containing the HTTP response message.
xdmp:get-response-code() => 200 OK
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.