417 Expectation Failed

The expectation in the request's Expect header cannot be met by the server.

Status

HTTP/1.1 417 Expectation Failed

Details

The only registered expectation is 100-continue, so in practice 417 means a server or an intermediary in the path does not support it. The client should drop the Expect header and send the request normally.

It shows up most often with older proxies and appliances that reject anything they do not recognize in the Expect header. Modern origin servers usually ignore an unsupported expectation instead of failing.

Headers

Common causes

How to fix it

As the client

As the server

Examples

POST /upload HTTP/1.1
Host: api.example.com
Expect: 100-continue
Content-Length: 10485760

HTTP/1.1 417 Expectation Failed

Specifications

RFC 9110 §15.5.18

See also