nodejs get status from API html response code example Example: node js response header response.setHeader("Content-Type", "text/html");