Java refactor check status code

Java refactor check status code on BaseService
get headers hashmap on ConnectionsService