407 Proxy Authentication Required는 요청을 계속 진행하기 전에 중간 프록시에 대한 인증이 필요함을 뜻합니다. 401이 원본 서버에 대한 인증을 요구하는 것과 달리, 407은 클라이언트와 서버 사이의 프록시가 자격 증명을 요구하는 것입니다.
규격상 407 응답에는 프록시가 어떤 인증 방식을 원하는지 알리는 Proxy-Authenticate 헤더가 포함되며, 클라이언트는 이에 맞춰 Proxy-Authorization 헤더로 자격 증명을 보내야 합니다.
GET http://example.com/ HTTP/1.1
Host: example.com
(sent through a corporate proxy without credentials)HTTP/1.1 407 Proxy Authentication Required
Proxy-Authenticate: Basic realm="Corporate Proxy"
Content-Type: text/html
<h1>Proxy Authentication Required</h1>curl -x http://proxy.corp:8080 \
--proxy-user alice:secret \
http://example.com/