MarkLogic Server 11.0 Product Documentation
xdmp:get-response-codexdmp:get-response-code() as item()*
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:get-response-code()
=> 200
OK
Copyright © 2024 MarkLogic Corporation. MARKLOGIC is a
registered trademark of MarkLogic Corporation.