<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. e.g.:</div><div><br></div><div><a href="http://freebase.com/api/service/search?prefix=insx&type=/music/artist&type_strict=all">http://freebase.com/api/service/search?prefix=insx&type=/music/artist&type_strict=all</a> </div><div><br>{<br>"status": "200 OK",<br>"code": "/api/status/error",<br>"messages": [<br> {<br> "message": "No search results found",<br> "code": "/api/status/error/search/empty"<br> }<br>],<br>"result": []<br>}</div><div><br></div><div>In the coming weeks this will change. The expected response for an empty result will be:</div><div><br></div><div><span class="Apple-style-span" style="font-family: Arial; ">{ <br> "status": "200 OK", <br> "code": "/api/status/ok", <br> "messages": [ <br> { <br> "message": "No search results found" <br> } <br> ], <br> "result": [] <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>