Navigation
What does HTTP status code 205 Reset Content mean?
The HTTP status code 205 reset content indicates that the server is requesting that the client reset the document from which the original request was made.
If a user submits a form, a status code of 205 indicates that the server is requesting the browser to clear the form.
205 Reset Content is somewhat analogous to 204 No Content. It’s designed specifically for hypertext applications.
A server must not produce a payload in a 205 response since the 205 status code suggests that no more material will be given. In other words, for a 205 answer, a server must execute one of the following:
- include a Content-Length header field with a value of 0 to indicate a zero-length body for the response;
- include a Transfer-Encoding header field with a value of chunked and a message body consisting of a single zero-length chunk; or
- close the connection immediately after sending the blank line terminating the header section to indicate a zero-length payload for the response.
For example, if a user fills out an HTML form and submits it to the server. If the server returns a 204, the browser can respond by informing the user that the form submission was successful rather than refreshing the page.
If the server sent back a 205, a browser can reset the form, similar to a reset button an HTML form:
<input type="reset" />
Example response:
HTTP/1.1 205 Reset Content
Server: foo-bar/1.2
Connection: close
Status
205 Reset Content
205 Code References
Rails HTTP Status Symbol | :reset_content |
Go HTTP Status Constant | http.StatusResetContent |
Symfony HTTP Status Constant | Response::HTTP_RESET_CONTENT |
Python2 HTTP Status Constant | httplib.RESET_CONTENT |
Python3+ HTTP Status Constant | http.client.RESET_CONTENT |
Python3.5+ HTTP Status Constant | http.HTTPStatus.RESET_CONTENT |
Specifications
Specification | Title |
RFC 7231, section 6.3.6: 205 Reset Content | Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content |
Browser Compatibility
Browser | 205 Reset Content |
Firefox 2.0.0.14 | treated like 204 |
Safari 3.1.1 | treated like 200 |
Opera 9.27 | treated like 200 |
Internet Explorer 7 (7.0.5730.13) | treated like 200 |
Internet Explorer 8 beta 1 (8.0.6001.17184) | treated like 200 |
Firefox 3 beta 5 | treated like 204 |
Related Post: HTTP Status Code 204
FAQs
What is status code 205?
The 205 status code indicates that the server is requesting that the client reset the document from which the original request was made.
Conclusion
I hope this article was able to help you with your doubts and queries related to HTTP status code 205 reset content. Still, if there are any questions you have that are unanswered, feel free to ask them in the comment section, we would be happy to assist you. Thank you.
Kedar Dangal
Making a difference, Adding the sum.