Fix Promises being incorrectly rejected

Returned Promises were being incorrectly rejected regardless of whether request() returned an error. FWIW, this suggests to me that your tests aren't checking your return values or their resolution.