I am currently using springframework for consuming webservices in android. All was working fine but now I have been stuck. I need to consume response even when there is some bad condition i.e. even if there is status code 400 , 404, etc. Is there someone who could get me out of this trouble as I don't want to switch for any other library.
result=RestTemplateUtil.getRestTemplateForHeaders() .postForObject(url,request,responseType,map);