Skip to content

302 Found

Historically ‘Moved Temporarily’. The resource is at a different URL for now. Future requests should still use the original one.

Use this for temporary redirects. For example, if your site is under maintenance, you might 302 redirect users to a ‘We will be right back’ temporary holding page.

import { HttpCode, get } from 'shokupan';
export const getResource = get('/resource', () => {
return { message: 'Found' };
}).pipe(HttpCode(302));