karmi/retire — pull request #929 by msonnabaum (2014-01-22 20:58:12+00:00)
Title: Added http error handling to Index#retrieve.

Unlike `bulk`, `retrieve` didn't have a check for 500 response codes, which led to Tire::Model returning an object from find instead of reporting the error.

This change adds the same handling as in `bulk`, but makes an exception for 404 since that is handled by the `h['exists'] == false` later on.