📚Dev Reference

Common MIME Types

Content-Type headers for web development.

Explanation

MIME types tell the browser how to process a file or API response.

Examples

JSON
Output
application/json
HTML
Output
text/html

Code Examples

List
application/json
text/plain
text/html
image/png
multipart/form-data
application/octet-stream

💡 Tips

  • Always set Content-Type: application/json for APIs
  • Use multipart/form-data for file uploads
  • octet-stream is the generic binary fallback

⚠️ Common Pitfalls

  • Incorrect MIME types can cause browsers to download files instead of displaying them