301 Moved Permanently

Doesn't live here any more. Stop coming round.

What it properly means

The URL of the resource has changed for good. The new URL is given in the response.

Class
3xx Redirection: go away
Defined in
RFC 9110, section 15.4.2

Get one yourself

This endpoint really answers with 301. Point your client at it and see what it does.

curl -i https://httpcodes.dev/api/301

People mix this up with

  • 301308 Permanent Redirect

    Which permanent redirect?

    Both mean moved for good. With 301, clients are allowed to turn a POST into a GET when they follow it. 308 forbids that: the method and body stay the same.

  • 301302 Found

    Permanent or temporary?

    301 tells browsers and search engines to update their records and stop asking for the old URL, and they will cache it hard. 302 says keep using the old URL because this is only for now.