     /// - Parameter ignoreString: Comma separated string of templates to generate
     ///
     /// - Peturns: Final formatted template with headers and footers
-    private func createTemplate(ignoreString: String) -> String {
+    private func createTemplate(ignoreString: String) -> (template: String, status: HTTPResponseStatus) {
         guard let urlDecoded = ignoreString.removingPercentEncoding else {
-            return "\n#!! ERROR: url decoding \(ignoreString) !#\n"
+            return ("\n#!! ERROR: url decoding \(ignoreString) !#\n", .internalServerError)
         }
-        return urlDecoded
+        var createStatus: HTTPResponseStatus = .ok
+        let template = urlDecoded
             .lowercased()
             .components(separatedBy: ",")
             .uniqueElements

        router.get("/api", String.parameter) { request -> Response in
            let response = request.makeResponse()
            let ignoreString = try request.parameters.next(String.self)
            try response.content.encode(self.createTemplate(ignoreString: ignoreString))
            return response
        }
    }

            switch format {
            case "lines": try response.content.encode(templateKeys.joined(separator: "\n"))
            case "json": try response.content.encode(json: self.templates)
            default:
                try response.content.encode("Unknown Format: `lines` or `json` are acceptable formats")
                response.http.status = .internalServerError
            }
            return response
        }
