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

Image of Datadog

Create and maintain end-to-end frontend tests

Learn best practices on creating frontend tests, testing on-premise apps, integrating tests into your CI/CD pipeline, and using Datadog’s testing tunnel.

Download The Guide

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs