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

panates / opra / 29494915195

16 Jul 2026 11:33AM UTC coverage: 83.024% (+0.4%) from 82.653%
29494915195

push

github

erayhanoglu
1.29.1

4118 of 5238 branches covered (78.62%)

Branch coverage included in aggregate %.

34348 of 41093 relevant lines covered (83.59%)

239.47 hits per line

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

78.26
/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;
×
13

×
14
  protected init(issue: Partial<ErrorIssue>) {
×
15
    super.init({
×
16
      message: 'You are not authorized to perform this action',
1✔
17
      code: 'FORBIDDEN',
1✔
18
      ...issue,
1✔
19
    });
1✔
20
  }
1✔
21
}
1✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc