HTTP Status Codes in One Tweet

Not-so-mental Note: Always check the status code of your HTTP response as soon as possible:

if (response.statusCode !== 200) {
  // Handle a bad response
}

Leave a comment