Back to all status codes
451

Unavailable For Legal Reasons

The server is denying access to the resource as a consequence of a legal demand.

Common Causes

  • Government censorship
  • DMCA takedown
  • Court order
  • GDPR restriction

Code Examples

// Express.js - Legal block
app.get('/blocked-content', (req, res) => {
    res.status(451).json({ 
        error: 'Unavailable for legal reasons',
        blockedBy: 'Legal authority reference'
    });
});

Related Tools