Skip to content

[QA] Non-existent pages return HTTP 200 instead of 404 (SPA catch-all) #38

@jarvisstark011010-cpu

Description

@jarvisstark011010-cpu

Steps to Reproduce

  1. Navigate to https://smshub.dev/this-page-does-not-exist-xyz123
  2. Check HTTP status code in DevTools → Network tab

Expected

HTTP 404 status code with user-friendly error page and link back to home

Actual

HTTP 200 returned. No 404 message shown to user.

Root Cause

SPA client-side router serves index.html for all routes. Server should return 404 for truly non-existent paths.

Severity

Medium

Impact

  • SEO: Search engines index invalid URLs as valid pages
  • Monitoring: Cannot detect broken links (always 200)
  • UX: Users not informed the page doesn't exist

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions