Prefer [http://expressjs.com/api.html#res.type](res.type) for this