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"...