A redirect is a response that asks the client to make another request. The status code communicates whether the destination is temporary or permanent, while the Location header supplies the next URL. For a URL shortener, the redirect endpoint resolves a code, validates the stored destination, and responds with a temporary redirect.
These are working notes, not the last word. The goal is to keep the learning loop visible: try a concept, explain it simply, then revisit it with a better question.