Using `raw` for No Content Response

Is the raw the recommended way to return a response when none exists ? For example:
return yield* HttpServerResponse.raw(null, {
  status: 304,
  headers: {
    ETag: currentETag,
    "Cache-Control": "private, max-age=3600", // Cache for 1 hour
  },
});
Was this page helpful?