getters for http code and error response