Skip to content

Commit db2a69c

Browse files
committed
fix: 401 handling
1 parent d8c3c63 commit db2a69c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/responses/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export function get404(message = '') {
3434
}
3535

3636
export function get401(message = DEFAULT_UNAUTHORIZED_HTML_MESSAGE) {
37-
return daResp({ body: message, status: 404, contentType: 'text/html' });
37+
return daResp({ body: message, status: 401, contentType: 'text/html' });
3838
}
3939

4040
export function getRobots() {

0 commit comments

Comments
 (0)