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

oprajs / opra / 20427546580

22 Dec 2025 09:22AM UTC coverage: 81.893% (-0.5%) from 82.354%
20427546580

push

github

erayhanoglu
1.22.0

3707 of 4777 branches covered (77.6%)

Branch coverage included in aggregate %.

31787 of 38565 relevant lines covered (82.42%)

251.82 hits per line

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

45.0
/packages/common/src/exception/http-errors/method-not-allowed.error.ts
1
import type { ErrorIssue } from '../error-issue.js';
1✔
2
import { OpraHttpError } from '../opra-http-error.js';
1✔
3

1✔
4
/**
1✔
5
 * 405 Method Not Allowed
1✔
6
 * The request method is known by the server but is not supported by the target resource.
1✔
7
 * For example, an API may not allow calling DELETE to remove a resource.
1✔
8
 */
1✔
9
export class MethodNotAllowedError extends OpraHttpError {
1!
10
  status = 405;
×
11

×
12
  protected init(issue: Partial<ErrorIssue>) {
×
13
    super.init({
×
14
      message: 'Method not allowed',
×
15
      code: 'METHOD_NOT_ALLOWED',
×
16
      ...issue,
×
17
    });
×
18
  }
×
19
}
×
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