A proxy between you and the server needs credentials before it will forward the request. It names the scheme it wants in Proxy-Authenticate.
Defined in RFC 9110 §15.5.8 — 407 Proxy Authentication Required · MDN reference
Corporate and school networks with authenticating forward proxies; CI runners behind one; package managers failing to download for no apparent reason.
Mostly a test of environment rather than code: what does your client do on a corporate network? Make sure the error it shows mentions the proxy, not the API.
Do not retry with the API's credentials — they go in Authorization, the proxy wants Proxy-Authorization. Most HTTP clients read proxy credentials from configuration or environment (HTTPS_PROXY with user:pass), not from code.
1 endpoint in this playground answers with 407. Every one is free, needs no signup, and can be called from the browser or with curl.
GET https://funapi.dev/api/faults/v1/status/{code} — Return any status code on demand (200–599) (Fault Injection API) Open & run this endpointAll HTTP status codes · All 39 mock REST APIs · Getting started guide
Last updated