fixed #1: http request error throwing