=Response=
By default, a successful request is answered with the HTTP status code "200 OK", and is followed by the given content; an erroneous request leads to an error code and an optional error message (e.g. {{Code|404}} for "resource “resource not found"found”).
Custom responses can be built from within in XQuery by returning an <code>rest:response</code>, an <code>http:response</code> child node that matches the syntax of the [http://expath.org/spec/http-client EXPath HTTP Client Module] specification, and more optional child nodes that will be serializedas usual. E.g. one may return to the client
<pre class="brush:xml">