use setHeader instead of writeHead
Merge pull request #949 from lo1tuma/use-setHeader-instead-of-writeHead

errorHandler: use setHeader instead of writeHead