send HTTP request results in HTTP response, handle errors