xdmp:set-response-code( $code as xs:integer, $message as xs:string ) as empty-sequence()
Sets the response code and message.
xdmp:set-response-code(204,"No Content")