Can I force a non-200 response from a REST resources’ js code?
We use js rest resources for accessing certain content. eg GET content=fruits
I want to be able to 404 the pages asking for missing content or making otherwise invalid requests eg content=potato-fruits
It’s trivial to render “not found” text, but I want to be able to modify the http response status header of the page, so machines such as caches do not cache “not found” texts because the server response was 200 but the content was missing.