2xx Success

HTTP 205 Reset Content

The server has fulfilled the request and the user agent should reset the document view.

When is 205 used?

  • Form submissions that clear the form after success
  • Canvas drawing reset operations

How to handle a 205 response

No error handling is needed. Check that the response body and headers match what your client expects — for example, a 204 response has no body.

Check the status code a URL returns from the command line:

curl -s -o /dev/null -w "%{http_code}\n" https://example.com

How to return 205 from your server

Node.js (Express)

res.status(205).json({ message: 'Reset Content' });

Python (Flask)

return {"message": "Reset Content"}, 205

Go (net/http)

w.WriteHeader(205)

Frequently Asked Questions

What does HTTP 205 mean?

205 Reset Content: The server has fulfilled the request and the user agent should reset the document view.

Is 205 an error?

No. 205 is in the 2xx Success class. Success: the request was received, understood, and accepted.