also write out http_code to avoid using grep to check for 200