What 417 means
Almost always about Expect: 100-continue, which some servers and proxies don't support.
Common causes
- A client sent Expect: 100-continue to a server that rejects it.
How to fix it
If you're calling an API
- Remove the Expect header (curl: -H 'Expect:').
If you run the server
- Support or ignore Expect: 100-continue.
Should you retry?
Without the Expect header.
Example response
HTTP/1.1 417 Expectation Failed
Content-Type: application/problem+json
{
"type": "about:blank",
"title": "Expectation Failed",
"status": 417,
"detail": "The server can't meet the Expect header's requirement."
}Related headers: Expect.
Defined in: RFC 9110 (HTTP Semantics). 417 is a client error: change the request before retrying.
Debugging an API call? Convert your request with the cURL converter, check the response with the JSON formatter, or see whether the API is down on its status page.