diff --git a/lib/camp.js b/lib/camp.js
index <HASH>..<HASH> 100644
--- a/lib/camp.js
+++ b/lib/camp.js
@@ -367,12 +367,12 @@ function catchpath (ask, platepaths, status) {
   }
   var pathmatch = ask.path.match (RegExp (platepaths[0][0]));
 
-  // Template parameters (JSON-serializable).
-  var params = platepaths[0][1] (ask.query, pathmatch, ask);
-
   res.statusCode = status;
   ask.mime(mime[p.extname(pathmatch[0]).slice(1)] || 'text/plain');
 
+  // Template parameters (JSON-serializable).
+  var params = platepaths[0][1] (ask.query, pathmatch, ask);
+
   var templatePath = p.join(ask.server.documentRoot, pathmatch[0]),
       reader = fs.createReadStream(templatePath);
Let templated requests be overriden