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

kwhitley / itty-router / 5139182859

01 Jun 2023 01:04AM UTC coverage: 100.0%. Remained the same
5139182859

push

github

kwhitley
released v4.0.8 - added prettier

67 of 67 branches covered (100.0%)

Branch coverage included in aggregate %.

378 of 378 relevant lines covered (100.0%)

18.69 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/src/StatusError.ts
1
type StatusErrorObject = {
1✔
2
  error?: string
1✔
3
  [key: string]: any
1✔
4
}
1✔
5

1✔
6
export class StatusError extends Error {
1✔
7
  status: number;
1✔
8
  [key: string]: any
1✔
9

1✔
10
  constructor(status = 500, body?: StatusErrorObject | string) {
1✔
11
    super(typeof body === 'object' ? body.error : body)
2✔
12
    typeof body === 'object' && Object.assign(this, body)
2✔
13
    this.status = status
2✔
14
  }
2✔
15
}
1✔
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

© 2026 Coveralls, Inc