raise errors on html response