node.js and jsdom - no way to detect that an http 500 error was returned?
Posted
by
Nathan Ridley
on Stack Overflow
See other posts from Stack Overflow
or by Nathan Ridley
Published on 2012-10-17T05:17:01Z
Indexed on
2012/10/20
17:01 UTC
Read the original article
Hit count: 250
I'm using jsdom with node.js and I'm trying to get it to provide me with some indication that an http error has occurred. I've set up a test server that simply returns an http 500 header for all requests, but when I attempt to load it with jsdom, jsdom doesn't throw any error and doesn't seem to provide me with any information that would identify that an http 500 error was returned. What's the best way to detect an http 500 error?
© Stack Overflow or respective owner