# By default, the content type of a response depends on the chosen operation:
#* Query results are returned as <code>application/xml</code>
#* Command results are returned as <code>text/plain</code>
#* Query results are returned as <code>application/xml</code>
# The default content type is overwritten if a [[Serialization|serialization method]] is specified, either as [[#Query Parameters|query parameter]] or within the XQuery expression. The following methods are available:
#*<code>xml</code> → <code>application/xml</code>#*<code>xhtml</code> → <code>text/html</code>#*<code>html</code> → <code>text/html</code>#*<code>text</code> → <code>text/plain</code>#*<code>raw</code> → <code>application/octet-stream</code>#*<code>json</code> or <code>jsonml</code> → <code>application/json</code>
# The content type is overwritten in any case if a specific [[Serialization|media-type]] is chosen, again as query parameter or within the query.