Added ability to set prerender-status-code.
Added not-found (404) view; tidying up indentation.
Fix local/outer variable naming collision (model→category)