requestify icon indicating copy to clipboard operation
requestify copied to clipboard

Wrong status sent on timeout

Open osuushi opened this issue 7 years ago • 0 comments

This code sends a 405 on timeout:

timeout = setTimeout(function() {
  httpRequest.abort();
  defer.reject(new Response(405, {}, 'timeout exceeded'));
}, request.timeout);

405 is "Method Not Allowed". Pretty sure this is supposed to be 504 "Gateway Timeout"

osuushi avatar Dec 18 '17 20:12 osuushi