Skip to content

Commit 00cdeb1

Browse files
authored
note that redirect throws (sveltejs#1257)
1 parent 9ed447e commit 00cdeb1

File tree

1 file changed

+2
-0
lines changed
  • apps/svelte.dev/content/tutorial/03-sveltekit/09-errors-and-redirects/04-redirects

1 file changed

+2
-0
lines changed

apps/svelte.dev/content/tutorial/03-sveltekit/09-errors-and-redirects/04-redirects/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,5 @@ The most common status codes you'll use:
2424
- `303` — for form actions, following a successful submission
2525
- `307` — for temporary redirects
2626
- `308` — for permanent redirects
27+
28+
> [!NOTE] `redirect(...)` throws, like `error(...)`, meaning no code _after_ the redirect will run.

0 commit comments

Comments
 (0)