jverkoey/nimbus — pull request #170 by Vaseltior (2012-03-07 11:28:50+00:00)
Title: Adding at least 404 error code support (and more)

... with error when a status code different from 200 is received from the request in case of an image load

When an image is loaded with NINetworkImageView, even if the request returns a 404, the delegate receive a didFinishCall. This is wrong. The delegate needs to know that the image could not be loaded.

So I did modify the NIOperations so that in the case of images download, if it is an NSHTTPURLResponse, and if the status code is different from 200, we create an error object that will be catch by the next instruction.
And will then call didFailWithError.