<!--
	SPDX-FileCopyrightText: © 2025 Hornwitser <code@hornwitser.no>
	SPDX-License-Identifier: AGPL-3.0-or-later
-->
<template>
	<Header />
	<h1>{{ error.statusCode }} {{ error.statusMessage }}</h1>
	<p v-if="error.message !== error.statusMessage">
		{{ error.message }}
	</p>
	<pre v-if="error.stack"><code>{{ error.stack }}</code></pre>
</template>

<script setup lang="ts">
defineProps<{ error: {
	statusCode: number,
	fatal: boolean,
	unhandled: boolean,
	statusMessage?: string,
	data?: unknown,
	cause?: unknown,

	// Undocumented fields
	url?: string,
	message?: string,
	stack?: string,
} }>()
</script>
