Attempting to parse an invalid JSON string - often happens when server returns HTML error pages.
// Buggy Code
const response = '<html><body>Error 500</body></html>';
const data = JSON.parse(response);
// SyntaxError: Unexpected token '<', "<html><bod"... is not valid JSON