You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
request('http://www.google.com',function(error,response,body){if(!error&&response.statusCode==200){console.log(body)// Show the HTML for the Google homepage.}})
In what circumstances does error get set? Looks like 4xx and 5xx responses leave error as null.
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hi,
In this example from the README file:
In what circumstances does
error
get set? Looks like4xx
and5xx
responses leaveerror
as null.The text was updated successfully, but these errors were encountered: