improvements: check http response status