Ok so I solved it, the problem was setting the <httpErrors errorMode="Detailed" />
to Detailed, if it's on Custom there IIS7-error handler intercepts all pages that return 404 and switches the response out.
thr
2009-10-12 09:24:00