fullscale/elastic.js — pull request #14 by rashidkpc (2013-04-05 18:16:22+00:00)
Title: Expose error text and status code

I suspect undefined was being passed to errorcb to maintain backward compatibility with code that was checking if the results were undefined and assuming an error from that. I dunno if its worth the breaking change, but I needed to be able to see the error text