fix: return 404 for non existent static pages

This commit is contained in:
Hossein Mehrabi 2023-08-31 16:32:24 +03:30
parent e6df08f32a
commit 09b00c3791
No known key found for this signature in database
GPG Key ID: 45C04964191AFAA1

View File

@ -17,7 +17,7 @@ const Page: CustomNextPage<PageProps> = ({
}) => {
if (!data) {
if (notFound) {
return <Error statusCode={400} />
return <Error statusCode={404} />
}
return <Error statusCode={500} />