When a server sends an HTTP response with an HTML document in the body, it would usually use the text/html content type. Should the content type be different if
It's a personal preference. If it is only your app, then it doesn't matter. I would keep it text/html because it is still HTML markup, even if not a complete document.