node http api with content type json and status 200 code example Example: node js response header response.setHeader("Content-Type", "text/html");