dharmafly / noodle

A node server and module which allows for cross-domain page scraping on web documents with JSONP or POST.
https://noodle.dharmafly.com/
747 stars 69 forks source link

Retrive HTTP status code #106

Open hugsbrugs opened 9 years ago

hugsbrugs commented 9 years ago

Hi there,

i've seen we can retrieve request headers but what about HTTP status code : 200 404 etc ... ?

We certainly don't want to process result same way depending on status code and/or it could give extra informations without doing extra request (example redirect 301 ...)

Let me know if this infos are available or if can can help adding them to noodle !

premasagar commented 8 years ago

An 4xx (e.g. 404) or 5xx (e.g. 500) status response from fetching a resource should trigger the error handling pipeline. Success responses, like 200 and 301 are not reported.

I am working on a successor to Noodle, which will be a lot more flexible. No release date set, but it's in progress.