How to redirect?

Use the Response.redirect function:

case GET() -> Path("a-deprecated-route") =>
  Response.redirect("/this-other-place")

This will redirect the request to "/this-other-place",
with status 301 MOVED_PERMANENTLY