417 Expectation Failed

The server can't meet the Expect header.

4xx · Client error

What it means

The server or a proxy can't meet the request's Expect header. The only defined expectation is 100-continue.

Why you're seeing it

  • An old server or proxy that doesn't support Expect: 100-continue.
  • Clients that add the header automatically for large uploads.

How to fix it

  • Retry without the Expect header, e.g. curl -H "Expect:".
  • In .NET, set ServicePointManager.Expect100Continue = false, or the equivalent in your client.

Example response

HTTP/1.1 417 Expectation Failed
Content-Length: 0