<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi all,<div><br></div><div>This change is no likely to affect any apps/scripts out there, but here goes:<br><div><br></div><div>Currently, if you make a search request and the service finds nothing, it comes back as an error. &nbsp;e.g.:</div><div><br></div><div><a href="http://freebase.com/api/service/search?prefix=insx&amp;type=/music/artist&amp;type_strict=all">http://freebase.com/api/service/search?prefix=insx&amp;type=/music/artist&amp;type_strict=all</a>&nbsp;</div><div><br>{<br>"status": "200 OK",<br>"code": "/api/status/error",<br>"messages": [<br>&nbsp;{<br>&nbsp;&nbsp;&nbsp;"message": "No search results found",<br>&nbsp;&nbsp;&nbsp;"code": "/api/status/error/search/empty"<br>&nbsp;}<br>],<br>"result": []<br>}</div><div><br></div><div>In the coming weeks this will change. &nbsp;The expected response for an empty result will be:</div><div><br></div><div><span class="Apple-style-span" style="font-family: Arial; ">{&nbsp;<br>&nbsp;&nbsp;"status": "200 OK",&nbsp;<br>&nbsp;&nbsp;"code": "/api/status/ok",&nbsp;<br>&nbsp;&nbsp;"messages": [&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"message": "No search results found"&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;<br>&nbsp;&nbsp;],&nbsp;<br>&nbsp;&nbsp;"result": []&nbsp;<br>}</span></div><div><font class="Apple-style-span" face="Arial"><br></font></div><div><font class="Apple-style-span" face="Arial">This response just seems more sensible, particularly given that the service allows the user to request a very constrained result (strict=all means results must match the given type parameter value)</font></div><div><font class="Apple-style-span" face="Arial"><br></font></div><div><font class="Apple-style-span" face="Arial">If your code has error handling for this "no results" case, you might want to make sure this change won't break things.</font></div><div><font class="Apple-style-span" face="Arial"><br></font></div><div><font class="Apple-style-span" face="Arial">Let me know if you have any questions/concerns.</font></div><div><font class="Apple-style-span" face="Arial"><br></font></div><div><font class="Apple-style-span" face="Arial">Brendan</font></div></div></body></html>