update error class to handle NSHTTPURLResponse errors