Throw errors on error
Ensure requested URL's response code is 200

This is currently very annoying in phantomjs. For more information, see
this issue: https://github.com/ariya/phantomjs/issues/10185