added field getters methods - better http code error handling