Passed
Push — main ( 737de9...a57663 )
by Pieter Epeüs
01:31 queued 11s
created

AuthenticationError.errorStatus   A

Complexity

Conditions 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 3
rs 10
c 0
b 0
f 0
ccs 1
cts 1
cp 1
cc 1
crap 1
1
import makeAppError from './app-error.js';
2
3 7
const AppError = makeAppError(TypeError);
4
5
class AuthenticationError extends AppError {
6
    get name() {
7 7
        return 'AuthenticationError';
8
    }
9
10
    get errorStatus() {
11 4
        return 401;
12
    }
13
}
14
15
export default AuthenticationError;
16