MugunthKumar/MKNetworkKit — Issue #28: MKNetworkOperation connectionDidFinishLoading and 401
Author: eric-sofisoftwarellc
Created: 2012-01-06 03:59:41+00:00
State: open

The server I'm working with has a custom username/pw authentication (using json) and returns a 401 for certain cases with a json response body that I need to handle, for example multifactor authentication. connectionDidFinishLoading ends up calling errorBlock for a 401. Since errorBlock only gets a NSError, the block can't inspect the response.

Could MKNKErrorBlock also be passed the MKNetworkOperation? Then my errorBlock could see if it was a hard error or some other error.

I'm willing to make this change if this makes sense to you.