100

Continue

1xx Informational

Back to list

Server perspective

Use 100 as an interim response when a client asked whether it should continue sending the request body.

When to use

  • Send 100 when the request uses Expect: 100-continue and the server is willing to receive the body
  • Use it to avoid rejecting large uploads only after the client has already sent them

How to respond

  • Validate request-line and headers first, then either send 100 or a final error response
  • Follow 100 with a normal final response after the full request is processed

Headers to consider

  • Expect

Response body

  • Do not include a response body in a 100 response

Server-side pitfalls

  • Do not send 100 as the final outcome of the request
  • Do not require 100-continue for small bodies when it adds latency without real value

Examples

Header-first upload check

Request:POST /upload with Expect: 100-continue
Response:100 Continue followed later by a final 201 Created

The server first invites the client to send the body, then completes the request normally.

References

Related 1xx Informational Codes