From 70e8483ac69ca847c43e1804d44bf656c60b52cd Mon Sep 17 00:00:00 2001 From: Alexander Tesfamichael Date: Sun, 30 Apr 2017 19:37:39 +0200 Subject: [PATCH] Document response.ok convenience property --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 3b7d5b7..193e934 100644 --- a/README.md +++ b/README.md @@ -268,6 +268,10 @@ Constructs a new `Response` object. The constructor is identical to that in the Because Node.js does not implement service workers (for which this class was designed), one rarely has to construct a `Response` directly. +#### response.ok + +Convenience property representing if the request ended normally. Will evaluate to true if the response status was greater than or equal to 200 but smaller than 300. + ### Class: Headers