apps/docs/content/guides/functions/status-codes.mdx
Your Edge Function executed successfully and returned a valid response. This includes any status code in the 200-299 range that your function explicitly returns.
Your Edge Function used the Response.redirect() API to redirect the client to a different URL. This is a normal response when implementing authentication flows or URL forwarding.
These errors indicate issues with the request itself, which typically require changing how the function is called.
Cause: The Edge Function has JWT verification enabled, but the request was made with an invalid or missing JWT token.
Solution:
Authorization headerCause: The requested Edge Function doesn't exist or the URL path is incorrect.
Solution:
Cause: You're using an unsupported HTTP method. Edge Functions only support: GET, POST, PUT, PATCH, DELETE, and OPTIONS.
Solution: Update your request to use a supported HTTP method.
These errors indicate issues with the function execution or underlying platform.
Cause: Your Edge Function threw an uncaught exception (WORKER_ERROR).
Common causes:
Solution: Check your Edge Function logs to identify the specific error and add proper error handling to your code.
// ✅ Good error handling
try {
const result = await someAsyncOperation()
return new Response(JSON.stringify(result))
} catch (error) {
console.error('Function error:', error)
return new Response('Internal error', { status: 500 })
}
You can see the output in the Edge Function Logs.
Cause: Your Edge Function failed to start (BOOT_ERROR).
Common causes:
Solution: Check your Edge Function logs and verify your function code can be executed locally with supabase functions serve.
Cause: Your Edge Function didn't respond within the request timeout limit.
Common causes:
Solution:
Cause: Your Edge Function execution was stopped due to exceeding resource limits (WORKER_LIMIT). Edge Function logs should provide which resource limit was exceeded.
Common causes:
Solution: Check your Edge Function logs to see which resource limit was exceeded, then optimize your function accordingly.