oren — 5/28/2022, 12:54:37 PM

The only thing I don't like about wasteof3 is how 404s are used in place of other errors

♥ 2 ↩ 1 💬 7 comments

comments

jeffalo:

they’re only used in places where i rather not have bots and scrapers looking for stuff. (aka admin only pages). this is commonly done to try keeping things slightly more secure through obscurity.

5/28/2022, 4:23:26 PM
oren:

hmmm also how do you dynamically send a 404 in Sveltekit because I tried and it doesn’t work for me

5/28/2022, 5:33:46 PM
jeffalo:

can you set other status codes?

5/28/2022, 6:27:09 PM
oren:

Yeah like 302 (that's what I've used instead, just a redirect to the homepage). But 404 doesn't work

5/28/2022, 7:07:32 PM
jeffalo:

strange

5/29/2022, 6:14:38 AM
oren:

oh I figured it out (I used a param matcher)

5/28/2022, 7:13:50 PM
jeffalo:

cool

5/29/2022, 6:14:46 AM