205 Reset Content
The HTTP
205 Reset Content successful response status code indicates that the request has been successfully processed and the client should reset the document view.This response is intended to support use cases where the user receives content that supports data entry, submits user-edited data in a request, and the content needs to be reset for the next entry.
The instruction to "reset content" can mean clearing the contents of a form, resetting a canvas state, or refreshing a UI; the implementation depends on the client.
Note:
In web applications that use the
205 status, it's assumed that the client handles resetting content after a 205 response.
This is typically done via JavaScript, as resetting content such as forms after a 205 response is not handled natively by browsers.Note that the response must not include any content or the
Content-Length header (browsers may reject responses that include content).
The empty response may also be indicated using the Transfer-Encoding: chunked header with an empty chunk.Status
Examples
Resetting a form after receiving a 205 Reset Content
The client in this example sends a
POST request to submit a form with the comment Hello!:After successfully processing the form submission, the server responds with the following
205 response, indicating that the client should reset the form.Specifications
| Specification |
|---|
| HTTP Semantics # status.205 (external) |
See also
204No Content- HTTP request methods
- HTTP response status codes

