We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc89347 commit 5e7f321Copy full SHA for 5e7f321
1 file changed
packages/core/src/pages/api/fs/auth/login.ts
@@ -45,9 +45,17 @@ const handler: NextApiHandler = async (
45
})
46
47
if (!webopsResponse.ok) {
48
- response.status(401).json({
+ if (webopsResponse.status === 401 || webopsResponse.status === 403) {
49
+ response.status(401).json({
50
+ success: false,
51
+ error: 'Invalid password',
52
+ })
53
+ return
54
+ }
55
+
56
+ response.status(503).json({
57
success: false,
- error: 'Invalid password',
58
+ error: 'Service temporarily unavailable',
59
60
return
61
}
0 commit comments