Passed
Push — main ( 188420...6f11b6 )
by Pieter Epeüs
01:46 queued 12s
created

NoContentError   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
eloc 5
dl 0
loc 9
ccs 2
cts 2
cp 1
c 0
b 0
f 0
rs 10

2 Functions

Rating   Name   Duplication   Size   Complexity  
A errorStatus 0 3 1
A name 0 3 1
1
import makeAppError from './app-error.js';
2
3 8
const AppError = makeAppError(RangeError);
4
5
class NoContentError extends AppError {
6
    get name() {
7 7
        return 'NoContentError';
8
    }
9
10
    get errorStatus() {
11 4
        return 204;
12
    }
13
}
14
15
export default NoContentError;
16