diff --git a/mc_openapi/assets/templates/error.html b/mc_openapi/assets/templates/error.html
index 3afeee1fafcdc4d6ff55489731fd6be11494e190..bf76d60a5de0392e59b0f24b2803eae5acbcc525 100644
--- a/mc_openapi/assets/templates/error.html
+++ b/mc_openapi/assets/templates/error.html
@@ -11,7 +11,7 @@
     </div>
     <div class="message-body">
         <h2 class="title is-6 my-2">Description</h2>
-        <p>{{message}}</p>
+        <pre class="is-family-monospace message-body">{{message}}</pre>
         <details>
             <summary class="title is-6 my-2">Debug Message</summary>
             <pre class="is-family-monospace message-body">