- Rename `res` to `response` to follow no-abbreviation naming guideline
- Add `response.ok` check to throw on non-2xx status codes, preventing
error page content from being silently copied to the clipboard
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>