text/*
text/plain
File extensions: .txt, .log
Unformatted UTF-8 text — the default for .txt and log files.
What is text/plain?
text/plain is the media type for unformatted text with no markup and no styling. It is the simplest and most compatible way to serve human-readable content.
Typical usage
Log downloads, plain text exports, debugging endpoints, .txt files.
Common gotchas
Browsers render text/plain without HTML parsing — angle brackets show as literal characters. If you want the browser to render markup, use text/html.
HTTP header example
Response header
Content-Type: text/plain; charset=utf-8Reference
RFC 2046 §4.1.3