Added option to disable exception on HTTP failure code.