What are the possible content types for the response?
Common types of response contentTypes include:
- text/html signifies that the returned document is HTML format.
- plain text: indicates that the returned content is pure text.
- application/json: denotes that the returned data is in JSON format.
- The use of application/xml indicates that the data being returned is in XML format.
- image/jpeg indicates that the returned image is in JPEG format.
- image/png means that the returned image is in PNG format.
- application/pdf indicates that the returned document is in PDF format.
- application/octet-stream indicates that the response is a binary data stream.
- application/x-www-form-urlencoded: indicates that the data returned is in URL-encoded form.
- multipart/form-data indicates that the response is in the form of multiple parts of form data.
These are just some common contentType types, in fact, there are many other types available.