remove item from cache only if protocol error is in the response

issue #302 

if it is expired, it will return 400 with related message in the body. This will only catch issues that are not protocol error related such as 500, IOexception.