xdmp.setResponseCode( code as Number, message as String ) as null
Sets the response code and message.
xdmp.setResponseCode(204,"No Content");