Skip to content

Conversation

@wilsonyiyi
Copy link
Contributor

@wilsonyiyi wilsonyiyi commented Mar 6, 2024

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Docs
  • Other... Please describe:

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?

  • Yes
  • No

Other information

@kamilmysliwiec kamilmysliwiec merged commit d196fed into nestjs:master Mar 6, 2024
@wilsonyiyi wilsonyiyi deleted the patch-1 branch March 7, 2024 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants