HTTP 205 Reset Content
2xx Success
- Home
- HTTP Status Codes
- 2xx
- 205
What is HTTP 205 Reset Content?
The 205 (Reset Content) status code indicates that the server has fulfilled the request and desires that the user agent reset the document view which caused the request to be sent. This is commonly used when a form submission succeeds and the browser should clear the form for new input.
Common Use Cases
- Form submission requiring form reset
- Clearing user interface after an action
Usage Example
After a user submits a form to add a new item to an inventory, return 205 Reset Content. The browser will automatically clear all form fields, readying the interface for the next entry. This provides a smooth user experience without requiring JavaScript to manually reset the form.
// Laravel - returning 205 Reset Content
return response('', 205)
->header('Clear-Site-Data', 'null');
Related Status Codes
Common Mistakes
Mistake: Sending a body with 205 Reset Content
Fix: Like 204, the 205 response must not include a body. The browser is expected to reset the document view and ignore any response body.