<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/xdmp.getResponseCode.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>xdmp.getResponseCode</api:function-name><api:suggest>xdmp.getresponsecode</api:suggest><api:suggest>xdmp</api:suggest><api:suggest>getresponsecode</api:suggest><api:function-link mode="xquery" fullname="xdmp:get-response-code">/apidoc/8.0/xdmp:get-response-code.xml</api:function-link><api:function mode="javascript" name="getResponseCode" type="builtin" lib="xdmp" category="AppServerBuiltins" hidden="false" bucket="MarkLogic Built-In Functions" prefix="xdmp" namespace="http://marklogic.com/xdmp" fullname="xdmp.getResponseCode"><api:summary>
  Returns two nodes, the first containing the HTTP response code and the
  second containing the HTTP response message.
</api:summary><api:params/><api:return>ValueIterator</api:return><api:usage>
  You can use this with an HTTP Server error handler to create custom error
  pages.
</api:usage><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
xdmp.responseCode();
=&gt; 200
   OK
</pre></api:example></api:function></api:function-page>