这是indexloc提供的服务,不要输入任何密码
Skip to content

Invalid Tag Page Returns Status 200 Instead of 404 #988

@ray-android

Description

@ray-android

Describe the bug
The page for an invalid tag, such as https://tailwind-nextjs-starter-blog.vercel.app/tags/zzz, is returning a status code of 200 (OK) instead of the expected 404 (Not Found).

To Reproduce
Steps to reproduce the behavior:

  1. Open your web browser.
  2. Navigate to https://tailwind-nextjs-starter-blog.vercel.app/tags/zzz.
  3. Observe the HTTP status code of the page.
  4. See that the page shows a status code of 200 instead of 404.

Expected behavior
When accessing a URL with an invalid tag, such as https://tailwind-nextjs-starter-blog.vercel.app/tags/zzz, the expected response should be a 404 (Not Found) status code, indicating that the requested resource does not exist.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions