Fixed #112: propagate response status in server.js, handle undefined loc...

...ation header