<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/xdmp.setResponseCode.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>xdmp.setResponseCode</api:function-name><api:suggest>xdmp.setresponsecode</api:suggest><api:suggest>xdmp</api:suggest><api:suggest>setresponsecode</api:suggest><api:function-link mode="xquery" fullname="xdmp:set-response-code">/apidoc/8.0/xdmp:set-response-code.xml</api:function-link><api:function mode="javascript" name="setResponseCode" type="builtin" lib="xdmp" category="AppServerBuiltins" hidden="false" bucket="MarkLogic Built-In Functions" prefix="xdmp" namespace="http://marklogic.com/xdmp" fullname="xdmp.setResponseCode"><api:summary>
  Sets the response code and message.
</api:summary><api:params><api:param name="code" type="xs:integer"><api:param-description>
    The response code.</api:param-description><api:param-name>code</api:param-name><api:param-type>Number</api:param-type></api:param><api:param name="message" type="xs:string"><api:param-description>
    The response message.</api:param-description><api:param-name>message</api:param-name><api:param-type>String</api:param-type></api:param></api:params><api:return>null</api:return><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
xdmp.setResponseCode(204,"No Content");
</pre></api:example></api:function></api:function-page>