Client adds Expect: 100-continue to a request
- Where to look
- Request headers in curl -v or DevTools
- Fix
- Remove the header and resend
A 417 means a server or proxy cannot meet the request's Expect header, usually Expect: 100-continue. See how to retry without it and where it comes from.
A 417 Expectation Failed error means the server, or a proxy on the way, could not meet the expectation in the request's Expect header, which in practice is almost always Expect: 100-continue. The client's Expect header caused it. Repeat the request without the Expect header and send the body straight away.
Four quick questions, then a straight answer.
From your answers, this is quietly costing you traffic and nobody has the hours to chase it. Scaplet finds every affected page, drafts the fixes and tracks how AI answers mention you.
A data platform shipped 46 fixes without a ticket.
This looks handled. Re-check after a redesign, a migration or a big content push; that is when it breaks.
Your site is small and you have the time. Work through the steps on this page, starting with the pages that get the most traffic.
For a 100-continue request, RFC 9110 says the 417 "merely indicates that the response chain does not support expectations (e.g., it passes through an HTTP/1.0 server)". So the failure can sit in any hop: the origin, a reverse proxy, a gateway or a CDN. The client triggers it by sending Expect, and the fix is on the client or on the hop that rejects it.
Visitors rarely see a 417, because it only answers a request that carries an Expect header. If an upload tool or app shows it, retry the upload. If it fails every time, the app is sending a header the site's servers do not support, and the site owner or app vendor has to change it.
Run curl -v or check your HTTP client's debug log for an Expect: 100-continue header.
RFC 9110 says a client that gets a 417 to a 100-continue request "SHOULD repeat that request without a 100-continue expectation". MDN says the same: send the body without waiting for a 100.
Some clients add the header on their own: the curl documentation says curl emits an Expect: 100-continue header in some requests. Turn that option off, or strip the header, so the failure does not repeat.
Send the same request straight to the origin and then through each proxy. The first hop that answers 417 is the one that does not support expectations.
Answer 100 or a final status to Expect: 100-continue. RFC 9110 says an origin server "MUST NOT wait for the content before sending the 100 (Continue) response".
# Send the expectation explicitly
curl -i -X PUT https://uploads.example.com/videos -H 'Expect: 100-continue' -T video.mp4
# Remove the Expect header: a header with an empty value removes it
curl -i -X PUT https://uploads.example.com/videos -H 'Expect:' -T video.mp44 questions people ask next, answered from the sources on this page.
The server or a proxy could not meet the expectation in the request's Expect header, usually 100-continue.
Resend the request without the Expect header. RFC 9110 and MDN both say the client should repeat it without the expectation.
The client sends the Expect header, but the rejecting hop is a server or proxy that does not support expectations. Fix it on whichever side you control.
100 means the server is ready for the body. 417 means the expectation could not be met, so the client should send the request again without it.
Run the free audit, then approve the fixes. Every change can be undone.