510 Not Extended는 서버가 요청을 처리하려면 추가적인 확장(extension)이 필요한데 그 확장이 요청에 선언되지 않았다는 뜻입니다. RFC 2774의 실험적 HTTP 확장 프레임워크(Mandatory Extensions)에서 정의되었습니다.
이 확장 프레임워크는 실제로 널리 채택되지 않았고 RFC 2774도 실험적(Experimental) 상태에 머물렀기 때문에, 510은 현대 웹에서 거의 사용되지 않는 코드입니다.
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');
}
// ...
});