Revert "fix infinite loop when res.send(status) is undefined. Closes #1623"

This reverts commit 28b8a3b5f72829fecdaea5f0d585654470337a9a.