Added some code for handling http error event

related on listen and shout for HTTPError event