fix: return 404 for non existent static pages

This commit is contained in:
Hossein Mehrabi 2023-08-31 16:32:24 +03:30
parent f8f738965e
commit 0cc0942ccd
No known key found for this signature in database
GPG Key ID: 45C04964191AFAA1
1 changed files with 1 additions and 1 deletions

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} />