@glitch on an API context, if you return 302 Found outright, the browser might follow the redirect and return the content of the 2xx response to the "happy path" of the JS application, which might not help to set URLs and other miscellaneous stuff relevant for custom-written Client Rendered Applications.