[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can output filter return "page not found"?


suppressed wrote:
Sounds like something I would *not* do. If you are going to return a
404, why not do it as soon as possible.
Generating data only to return a 404 sounds like useless extra work
unless you are caching the same data for future requests.


I agree, if you don't want to much up your data generation code, write an Access or Fixup Handler (or any other pre-response phase handler of your choice) checks for the existence of the template at that stage. If it's not there, 404.

Adam



Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.