HTTP 205 Reset Content is a success status code that tells the client the request was processed successfully and that the user agent should reset the document view.
When a server sends 205 Reset Content, the browser is expected to clear or reset input fields, UI state, or form data without reloading the page.
// Node.js example sending 205 Reset Content
app.post('/submit', (req, res) => {
// Process data...
res.status(205).end();
});
The browser receives a successful response and resets the current form or UI state. No content is rendered because the response body must be empty.
Type something below and click submit to simulate a server sending a 205 status.
// HTML form reset triggered by server response
fetch("/submit", { method: "POST" })
.then(response => {
if (response.status === 205) {
document.getElementById("myForm").reset();
}
});