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

oprajs / opra / 14419802659

12 Apr 2025 12:55PM UTC coverage: 82.088% (+4.2%) from 77.908%
14419802659

push

github

web-flow
Merge pull request #27 from oprajs/dev

Dev

3458 of 4432 branches covered (78.02%)

Branch coverage included in aggregate %.

16 of 16 new or added lines in 10 files covered. (100.0%)

1793 existing lines in 129 files now uncovered.

29424 of 35625 relevant lines covered (82.59%)

183.2 hits per line

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

71.43
/packages/common/src/exception/http-errors/forbidden.error.ts
1
import { HttpStatusCode } from '../../enums/index.js';
1✔
2
import type { ErrorIssue } from '../error-issue.js';
1✔
3
import { OpraHttpError } from '../opra-http-error.js';
1✔
4

1✔
5
/**
1✔
6
 * 403 Forbidden
1✔
7
 * The client does not have access rights to the content; that is, it is unauthorized,
1✔
8
 * so the server is refusing to give the requested resource. Unlike 401 Unauthorized,
1✔
9
 * the client's identity is known to the server.
1✔
10
 */
1✔
11
export class ForbiddenError extends OpraHttpError {
1✔
12
  status = HttpStatusCode.FORBIDDEN;
1✔
13

1✔
14
  protected init(issue: Partial<ErrorIssue>) {
1✔
15
    super.init({
×
UNCOV
16
      message: 'You are not authorized to perform this action',
×
UNCOV
17
      code: 'FORBIDDEN',
×
UNCOV
18
      ...issue,
×
UNCOV
19
    });
×
UNCOV
20
  }
×
21
}
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