MIME types tell the browser how to interpret a response body. Content-Type: text/html = render as a page; application/json = parse as JSON.
MIME type
Content-type identifier (e.g. text/html) sent in an HTTP response.
Content-type identifier (e.g. text/html) sent in an HTTP response.
MIME types tell the browser how to interpret a response body. Content-Type: text/html = render as a page; application/json = parse as JSON.