fixed setting http status when using error handler