diff --git a/include/ajax.tickets.php b/include/ajax.tickets.php
index eb2b8c9c50a057677e9b77a1569727f73d1b0cc0..5722a76a78dac30cb36667808fc32e47c8fc8924 100644
--- a/include/ajax.tickets.php
+++ b/include/ajax.tickets.php
@@ -662,12 +662,12 @@ class TicketsAjaxAPI extends AjaxController {
 
         if (!($ticket = Ticket::lookup($tid))
                 || !$ticket->checkStaffAccess($thisstaff))
-            Http::response(404, 'Unknown ticket #');
+            Http::response(404, 'Unknown ticket ID');
 
 
         if ($cid && !is_numeric($cid)) {
             if (!($response=$ticket->getThread()->getVar($cid)))
-                Http::response(404, 'Unknown ticket variable');
+                Http::response(422, 'Unknown ticket variable');
 
             // Ticket thread variables are assumed to be quotes
             $response = "<br/><blockquote>$response</blockquote><br/>";
diff --git a/include/class.ticket.php b/include/class.ticket.php
index d015287ac3bc3a4773821846a177302e82946596..c483ef81b5d318b23195bf26e2e8ee3932e99538 100644
--- a/include/class.ticket.php
+++ b/include/class.ticket.php
@@ -1674,7 +1674,7 @@ class Ticket {
             $response = new HtmlThreadBody(
                     $this->replaceVars($canned->getHtml()));
         else
-            $response = new HtmlThreadBody(
+            $response = new TextThreadBody(
                     $this->replaceVars($canned->getPlainText()));
 
         $info = array('msgId' => $msgId,