510 Not Extended means the server needs an additional extension to process the request, but that extension was not declared in the request. It is defined by the experimental HTTP Extension Framework (Mandatory Extensions) in RFC 2774.
That framework was never widely adopted and RFC 2774 remained Experimental, so 510 is almost never used on the modern web.
GET /resource HTTP/1.1
Host: example.comHTTP/1.1 510 Not Extended
Content-Type: text/plain
The request must include a required extension declaration.app.get('/resource', (req, res) => {
if (!req.headers['c-ext']) {
return res.status(510).send('Not Extended: required extension missing');
}
// ...
});