Skip to content

303 See Other

You submitted a POST request successfully, now please GET the result from this other URL. Prevents duplicate form submissions on refresh.

Use this after a successful POST request (like submitting a form) to redirect the user to a success page. This stops the browser from showing the ‘Confirm Form Resubmission’ popup if the user hits the refresh button.

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