<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/xdmp.getRequestErrorFormat.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>xdmp.getRequestErrorFormat</api:function-name><api:suggest>xdmp.getrequesterrorformat</api:suggest><api:suggest>xdmp</api:suggest><api:suggest>getrequesterrorformat</api:suggest><api:function-link mode="xquery" fullname="xdmp:get-request-error-format">/apidoc/8.0/xdmp:get-request-error-format.xml</api:function-link><api:function mode="javascript" type="builtin" lib="xdmp" name="getRequestErrorFormat" category="AppServerBuiltins" hidden="false" bucket="MarkLogic Built-In Functions" prefix="xdmp" namespace="http://marklogic.com/xdmp" fullname="xdmp.getRequestErrorFormat"><api:summary>
  Returns the current error format for the request.  The error format's 
  default value is configured in the App Server.  It may be overwritten in 
  the rewriter.  The return value is one "xml" , "html" , "json" or 
  "compatible".

</api:summary><api:return>String</api:return><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
xdmp.getRequestErrorFormat();
=&gt; "json"
</pre></api:example></api:function></api:function-page>