The client asks for URL A, the server answers 301 with Location: B, the client asks for B, the server answers 200.
sequenceDiagram
participant C as Client
participant S as Server
C->>S: GET /old-url
S-->>C: 301 Location: /new-url
C->>S: GET /new-url
S-->>C: 200 OK