fix: links and formatting in Edge Functions status codes guide (#26907)

fix: links in Edge Functions status codes doc
This commit is contained in:
Lakshan Perera authored and GitHub committed 2024-05-31 09:33:46 +02:00
1 parent d376fee166
commit 15bd61ab25
1 file changed
+8 -8
@@ -11,36 +11,36 @@ A successful Edge Function Response
## 3XX Redirect
The Edge Function has responded with a `Response.redirect` (API docs)[https://developer.mozilla.org/en-US/docs/Web/API/Response/redirect_static]
The Edge Function has responded with a `Response.redirect` [API docs](https://developer.mozilla.org/en-US/docs/Web/API/Response/redirect_static)
## 4XX Client Errors
### 401 Unauthorized
If the Function has `Verify JWT` option enabled, but the request was made with an invalid JWT.
If the Edge Function has `Verify JWT` option enabled, but the request was made with an invalid JWT.
### 404 Not Found
Requested function was not found.
Requested Edge Function was not found.
### 405 Method Not Allowed
Edge Functions only support these HTTP methods 'POST', 'GET', 'PUT', 'PATCH', 'DELETE', 'OPTIONS'
Edge Functions only support these HTTP methods: 'POST', 'GET', 'PUT', 'PATCH', 'DELETE', 'OPTIONS'
## 5XX Server Errors
### 500 Internal Server Error
When an Edge Function throws an uncaught exception (`WORKER_ERROR`). Check Edge Function logs to find the cause.
Edge Function throwed an uncaught exception (`WORKER_ERROR`). Check Edge Function logs to find the cause.
### 503 Service Unavailable
Function failed to start (`BOOT_ERROR`). Check Edge Function logs to find the cause.
Edge Function failed to start (`BOOT_ERROR`). Check Edge Function logs to find the cause.
### 504 Gateway Timeout
Function doesn't respond before the [request idle timeout](/guides/functions/limits).
Edge Function didn't respond before the [request idle timeout](/docs/guides/functions/limits).
### 546 Resource Limit (Custom Error Code)
Function execution was stopped due to a resource limit (`WORKER_LIMIT`). Edge Function logs should provide which [resource limit](/guides/functions/limits) was exceeded.
Edge Function execution was stopped due to a resource limit (`WORKER_LIMIT`). Edge Function logs should provide which [resource limit](/docs/guides/functions/limits) was exceeded.