NestJS · Junior · Question 18 of 75

What status code does a @Post() handler return by default?

Explanation

Other methods return 200 by default. Change it with @HttpCode(204) or another code.

Further reading

Problem with a question

NestJS · Junior · question 18

Test yourself

Take the NestJS · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz