• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

nestjs / nest / 8a135727-6ce0-4aba-a7ae-912360797e37
89%
master: 90%

Build:
Build:
LAST BUILD BRANCH: test/request-scope-bubbling
DEFAULT BRANCH: master
Ran 03 Dec 2025 02:36PM UTC
Jobs 1
Files 356
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

03 Dec 2025 02:33PM UTC coverage: 88.939%. Remained the same
8a135727-6ce0-4aba-a7ae-912360797e37

Pull #16017

circleci

evgeniy.chernomortsev
fix(common): preserve default description for all HTTP exceptions when using options

When passing an options object with `cause` to built-in HTTP exceptions,
the default description was lost because `extractDescriptionAndOptionsFrom`
returns `undefined` for the description property when options object is passed.

Fixed by adding destructuring default values for the description in each
exception constructor, matching the default value from the parameter.

For example:
```typescript
// Before: description would be undefined
const { description, httpExceptionOptions } = ...

// After: description defaults to 'Bad Request' if undefined
const { description = 'Bad Request', httpExceptionOptions } = ...
```

Applied fix to all 21 built-in HTTP exceptions:
- BadGatewayException
- BadRequestException
- ConflictException
- ForbiddenException
- GatewayTimeoutException
- GoneException
- HttpVersionNotSupportedException
- ImATeapotException
- InternalServerErrorException
- MethodNotAllowedException
- MisdirectedException
- NotAcceptableException
- NotFoundException
- NotImplementedException
- PayloadTooLargeException
- PreconditionFailedException
- RequestTimeoutException
- ServiceUnavailableException
- UnauthorizedException
- UnprocessableEntityException
- UnsupportedMediaTypeException

Closes #15961
Pull Request #16017: fix(common): preserve default description for all HTTP exceptions when using options

2773 of 3498 branches covered (79.27%)

7325 of 8236 relevant lines covered (88.94%)

17.68 hits per line

Jobs
ID Job ID Ran Files Coverage
1 8a135727-6ce0-4aba-a7ae-912360797e37.1 03 Dec 2025 02:36PM UTC 356
88.94
Source Files on build 8a135727-6ce0-4aba-a7ae-912360797e37
  • Tree
  • List 356
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • CircleCI Build #8A135727...
  • Pull Request #16017
  • PR Base - master (#F6791497...)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc