#Is there a way to stop redirecting to /404 when I set the status code as 404?

11 messages · Page 1 of 1 (latest)

placid stone
#

check that perhaps

#

make a 404.js in the page folder.

#

then put whatever you want in it

#

then travel to a non valid url

#

it should appear just fine and not redirect you

#

and the error code is valid.

#

The fact that it redirects is probably very normal too, you wouldn't want your user to stay on a page that doesn't exist ^^.

hazy viper
#

Sorted it! 🙂