I went to "Error Pages" section in IIS7, and changed the option for 404 status code, to "Execute a URL on this site". The problem is that with this option the IIS returns status code 200, which is wrong!!!
If I choose "Insert content from static file into the error response" then it work fine and returns 404 status code.
How can I make the "Execute a URL on this site" option to work correctly?
Thanks.