Question · NestJS course · Module 1: NestJS Basics

Default @Post Response Code

Which response code does NestJS return by default from a method marked with the @Post() decorator?

Answer options

  • 200 OK
  • 201 Created
  • 204 No Content
  • 202 Accepted
Show the answer

Correct answer:

  • 201 Created