Java refactor check httpcodes followservice

Java refactor check httpcodes followservice