<div dir="ltr"><div><br></div><div>Hi<br><br></div>Following up on my inability to catch a 204, can you explain the rationalization 
for using a 204 instead of returning an empty, but structurally correct,
 quakeml document for a query that doesn&#39;t match anything. For example is I ask for a time window and magnitude range that doesn&#39;t match any earthquake, send back this:<br><br>&lt;q:quakeml xmlns:q=&quot;<a href="http://quakeml.org/xmlns/quakeml/1.2">http://quakeml.org/xmlns/quakeml/1.2</a>&quot; xmlns=&quot;<a href="http://quakeml.org/xmlns/bed/1.2">http://quakeml.org/xmlns/bed/1.2</a>&quot;&gt;<br>
&lt;eventParameters publicID=&quot;smi:<a href="http://service.iris.edu/fdsnws/event/1/query">service.iris.edu/fdsnws/event/1/query</a>&quot;&gt;<br>&lt;/eventParameters&gt;<br>&lt;/q:quakeml&gt;<br><br>To
 be honest, I would rather have an empty XML document returned in the 
case where the query is well formed and valid, but just so happens that 
nothing in the database matched my query. HTTP error codes make it sound
 like there was an error, but that is not really the case here. There 
wasn&#39;t any data and so an empty xml document is a fine thing to return. <br><br>I
 had a quick read of the http spec, and it doesn&#39;t really sound to me 
like a 204 is actually meant to mean, &quot;sorry, no data&quot;, but rather is to be used in 
cases where there is some communications efficiencies to be had by 
avoiding a &quot;entity body&quot; and a update of the document view.<br><br>I guess I just don&#39;t see
 any advantage of 204 being the default for &quot;no data&quot; for these xml web services, especially when it
 will almost certainly cause confusion given the way browsers handle it,
 ie leaving the old page content on the display. <br><br>$0.02<br>Philip<br><br><br><br></div>