HTTP 417 Expectation Failed

The expectation given in the Expect request header could not be met.

4xx Client Error

417

Expectation Failed

Description

The 417 Expectation Failed status code indicates that the expectation given in the request's Expect header field could not be met by at least one of the inbound servers. This is most commonly triggered by the Expect: 100-continue mechanism. When a client sends a request with an Expect: 100-continue header, it is asking the server to respond with 100 Continue before the client sends the request body. If the server cannot or does not want to honor this expectation, it responds with 417.

When Is It Used?

Returned when the server cannot meet the expectation indicated by the Expect request header. Most commonly occurs with the 100-continue expectation when the server decides it will not accept the request body.

Example Response

HTTP/1.1 417 Expectation Failed
Content-Type: application/json

{"error": "expectation_failed", "message": "The Expect header value could not be met"}

Look Up Any Status Code

Browse all status codes