Update apps/docs/content/troubleshooting/edge-function-404-error-response.mdx

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
TheOtherBrian1andgithub-actions[bot] authored and GitHub committed 2026-03-26 11:52:03 -04:00
1 parent 07a48032ea
commit 4e34bed230
1 file changed
+1 -1
@@ -96,7 +96,7 @@ return new Response(JSON.stringify({ error: 'Not found' }), {
**How to fix:**
1. Search your function code for `404`. Look for explicit status codes on `Response` objects.
2. Trace the condition that triggered it. If your function calls external APIs, it may simply be passing along errors returned by those services.
2. Trace the condition that triggered it. If your function calls external APIs, it may be passing along errors returned by those services.
3. Add logging before the return so future occurrences leave a trace:
```js