HTTP 301 Moved Permanently

The resource has a new URL, given in the Location header, and clients should use it from now on.

Why you would test it

Check whether your client follows the redirect, and whether it preserves the method and body when it does — many libraries silently turn a redirected POST into a GET.

Endpoints that return 301

1 endpoint in this playground answers with 301. Every one is free, needs no signup, and can be called from the browser or with curl.

Other redirection codes

All HTTP status codes · All 37 mock REST APIs · Getting started guide