refactor respond, res.status= and res.body=

handle status and body in respond, fix some edge cases.