Depends on the actual contents. This means the header is Content-Type .
So, if you are writing a JS callback function for the body, then yes, that should be application/javascript .
Or, if you write a JSON string to the body, then no, it should be application/json .
source share