404 Not Found: What It Means and How to Fix It | SheCodes

Page doesn’t exist · Usually quick to fix

404 Not Found

The URL you’re trying to reach doesn’t exist. Check the address or make sure the page is created.

What the error looks like

GET /api/users 404 (Not Found)

Why it happens

The page or API endpoint hasn’t been created, the URL has a typo, or the route structure doesn’t match.

How to fix it

  1. Double-check the URL for typos
  2. Make sure the page file exists in the right folder
  3. In Next.js, the folder structure determines the URL (e.g., app/about/page.tsx = /about)

Ask your AI coding tool to fix it

Paste this prompt into Claude Code, Cursor, Bolt or Lovable, with your own error in place of the example.

I'm getting this error and I need help understanding and fixing it:

```
GET /api/users 404 (Not Found)
```

Please:
1. Explain what this error means in plain English
2. Tell me the most likely cause
3. Give me the exact code changes or commands I need to fix it
4. Show me how to prevent this error in the future

Got a different error?

Paste any error into the free Error Decoder and get it explained in plain English, with a fix prompt.

Decode my error

More common errors explained