4xx Client Error
You told me to expect something specific to happen, but I can't make that happen the way you want.
Use 417 when the expectation in the Expect header cannot be met.
POST https://api.example.test/api/upload
# Headers
Expect: 100-continue417 Expectation Failed
# Headers
Content-Type: application/json
# Body
{
"error": "expectation_failed"
}Server cannot provide 100-continue response for this endpoint
Your request doesn't make sense or has mistakes in it. Check what you're sending and try again.
Imagine calling ahead before mailing a very heavy package: 'Can you accept this?' The post office says yes, so you drive it over. That's 100 Continue — the server greenlit the request headers, so send the rest of the data.