+1  A: 

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