Complete the code to send a JSON response with NestJS.
return res.[1]({ message: 'Hello World' });
Use res.json() to send a JSON response in NestJS.
Complete the code to set the HTTP status code to 201 before sending the response.
return res.[1](201).json({ success: true });
Use res.status() to set the HTTP status code in NestJS.
Fix the error in sending a plain text response with status 200.
return res.[1](200).[2]('Success');
Use res.status(200).send('Success') to set status and send plain text.
Fill both blanks to set a custom header and send a JSON response.
return res.[1]('X-Custom-Header', 'NestJS').[2]({ data: 'value' });
Use res.header() to set headers and res.json() to send JSON.
Fill all three blanks to send a file with status 200 and a custom content type.
return res.[1](200).[2]('file.pdf').[3]('application/pdf');
Use res.status() to set status, res.sendFile() to send file, and res.type() to set content type.
