Use the Response.redirect function:
Response.redirect
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
301 MOVED_PERMANENTLY