Back to all status codes
303

See Other

The response to the request can be found under a different URI using GET method.

Common Causes

  • POST redirect to GET
  • Form submission redirect
  • PRG pattern (Post/Redirect/Get)

Code Examples

// Express.js - PRG pattern
app.post('/api/order', (req, res) => {
    const order = createOrder(req.body);
    res.redirect(303, `/orders/${order.id}`);
});

Related Tools