nestjs / docs.nestjs.com

The official documentation https://docs.nestjs.com 📕
MIT License
1.13k stars 1.62k forks source link

docs(exception-filters): replace status with statusCode #2988

Closed wilsonyiyi closed 3 months ago

wilsonyiyi commented 3 months ago

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

What is the current behavior?

the exception-filters documentation describes that the JSON response body contains two properties: 'statusCode' and 'message', but the demo code in cats.controller.ts' uses the property 'status'.

image

What is the new behavior?

the object properties used in the example remain consistent with the documentation, replace 'status' with 'statusCode'

Does this PR introduce a breaking change?

Other information