Add a response.ok boolean similar to fetch API? #2036
Labels
enhancement
This change will extend Got features
good for beginner
This issue is easy to fix
✭ help wanted ✭
It's quite handy and would ease migrating to got.
It's set to false if
(res.statusCode < 200 || res.statusCode > 299)
or true if in 200-299.The text was updated successfully, but these errors were encountered: