diff --git a/src/routes/[recipeLang=recipeLang]/[name]/+error.svelte b/src/routes/[recipeLang=recipeLang]/[name]/+error.svelte new file mode 100644 index 0000000..58b76fe --- /dev/null +++ b/src/routes/[recipeLang=recipeLang]/[name]/+error.svelte @@ -0,0 +1,390 @@ + + + + {getErrorTitle(status)} - Alexander's Website + + +
+
+
+ {getErrorIcon(status)} +
+ +

+ {getErrorTitle(status)} +

+ +
+ Error {status} +
+ +

+ {getErrorDescription(status)} +

+ + {#if error?.message && !checkingGermanRecipe} +
+ {error.message} +
+ {/if} + + {#if checkingGermanRecipe} +
+ Checking for German version... +
+ {/if} + +
+ {#if status === 401} + + + {:else if status === 404 && recipeLang === 'recipes' && germanRecipeExists && !checkingGermanRecipe} + + + {#if user} + + {/if} + + {:else if status === 404} + + + {:else if status === 403} + + + {:else if status === 500} + + + {:else} + + + {/if} +
+
+
+ +