If someone is using AFHTTPSessionManager
then one can do like this to solve the issue,
I subclassed AFHTTPSessionManager
where I'm doing like this,
NSMutableSet *contentTypes = [[NSMutableSet alloc] initWithSet:self.responseSerializer.acceptableContentTypes];
[contentTypes addObject:@"text/html"];
self.responseSerializer.acceptableContentTypes = contentTypes;