I'd like to migrate a URL to a new URL. Because I want to do it properly, I'm thinking of using the 301 status code plus the new URL in the headers. However, I also plan to disable the old URL completely, so eventually, it will become 401, as anything else that the server cannot find and for which there isn't a configuration.
My question is: has anyone prescribed a way in HTTP to mark the old URL as deprecated (in addition to reporting that it should also be redirected to something else)? I cannot find anything in the HTTP status codes for that.