# Error page does not return 404 response code

**URL:** <https://community.hubspot.com/t/error-page-does-not-return-404-response-code/127541>\
**Category:** CMS Development\
**Tags:** html\
**Created:** [March 7, 2025, 1:55pm UTC](https://community.hubspot.com/t/error-page-does-not-return-404-response-code/127541 "2025-03-07T13:55:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DMuthuhewa](https://avatars.discourse-cdn.com/v4/letter/d/c4cdca/32.png) [@DMuthuhewa](https://community.hubspot.com/u/DMuthuhewa)\
**Post date:** [March 7, 2025, 1:55pm UTC](https://community.hubspot.com/t/error-page-does-not-return-404-response-code/127541/1 "2025-03-07T13:55:08Z")

</div>

Hi,

I have setup my web site with hubspot content/web pages and created a 404 page for any unavailable paths. When the user tries to access a page that do not available, it is showing the 404 page but with 200 as the response code. How can I set this return code to 404?

---

<div class="post-metadata">

**Author:** ![SteveHTM](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/stevehtm/32/22074_2.png) [@SteveHTM](https://community.hubspot.com/u/SteveHTM)\
**Post date:** [March 7, 2025, 7:34pm UTC](https://community.hubspot.com/t/error-page-does-not-return-404-response-code/127541/2 "2025-03-07T19:34:37Z")

</div>

@DMuthuhewa - just making sure you are editing the system response templates for this theme? And that the right page is configured in your content settings.

Steve

---

<div class="post-metadata">

**Author:** ![jnix284](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jnix284/32/29_2.png) [@jnix284](https://community.hubspot.com/u/jnix284)\
**Post date:** [March 7, 2025, 7:35pm UTC](https://community.hubspot.com/t/error-page-does-not-return-404-response-code/127541/3 "2025-03-07T19:35:08Z")

</div>

@DMuthuhewa Can you share an example?

---

<div class="post-metadata">

**Author:** ![GiantFocal](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/giantfocal/32/41969_2.png) [@GiantFocal](https://community.hubspot.com/u/GiantFocal)\
**Post date:** [March 11, 2025, 3:11am UTC](https://community.hubspot.com/t/error-page-does-not-return-404-response-code/127541/4 "2025-03-11T03:11:18Z")

</div>

Hi @DMuthuhewa,

Just to confirm, are you referring to a 404 page OR template?

Because system pages on HubSpot are not editable pages, but they’re templates applied from Content Settings.
