Updated request manager to cancel requests on 4xx and 5xx