Loading TOC...

xdmp.getResponseCode

xdmp.getResponseCode() as Sequence

Summary

Returns two nodes, the first containing the HTTP response code and the second containing the HTTP response message.

Usage Notes

You can use this with an HTTP Server error handler to create custom error pages.

Example

xdmp.getResponseCode();
=> 200
   OK

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.

Comments