diff --git a/lib/response.js b/lib/response.js index 99d1184..f96aa85 100644 --- a/lib/response.js +++ b/lib/response.js @@ -23,7 +23,7 @@ function Response(body, opts) { opts = opts || {}; this.url = opts.url; - this.status = opts.status; + this.status = opts.status || 200; this.statusText = opts.statusText || http.STATUS_CODES[this.status]; this.headers = new Headers(opts.headers); this.ok = this.status >= 200 && this.status < 300;