DEV Community

Cover image for A doggerel rhyme to ensure you won't get confused by HTTP 301 and 302
Kev
Kev

Posted on

A doggerel rhyme to ensure you won't get confused by HTTP 301 and 302

Three-O-One, the permanent run;
Three-O-Two, just passing through.

  • 301 Moved Permanently: Imagine your favourite restaurant has moved to a new location. You know you won't find it at the old address anymore, so you update your address book and GPS to go directly to the new spot. It's like the restaurant has permanently changed its address.

  • 302 Found (Moved Temporarily): picture a food truck that occasionally changes its parking spot. You might find it at one location today and another tomorrow. You keep checking the usual spot because you know it's just a temporary move.

HTTP 301

HTTP 302

Top comments (0)