You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** Unauthorized access - shown when authentication is required. */
26
+
exportconstUnauthorized: Story={
27
+
args: {
28
+
error: {
29
+
status: 401,
30
+
}asNuxtError,
31
+
},
32
+
}
33
+
34
+
/** Generic server error with default message. */
35
+
exportconstServerError: Story={
36
+
args: {
37
+
error: {
38
+
status: 500,
39
+
}asNuxtError,
40
+
},
41
+
}
42
+
43
+
/** Bad gateway - occurs when external services (jsDelivr, npm registry) fail. */
44
+
exportconstBadGateway: Story={
45
+
args: {
46
+
error: {
47
+
status: 502,
48
+
}asNuxtError,
49
+
},
50
+
}
51
+
52
+
exportconstTeapot: Story={
53
+
args: {
54
+
error: {
55
+
status: 418,
56
+
}asNuxtError,
57
+
},
58
+
}
59
+
60
+
/** Error with a message. */
61
+
exportconstWithMessage: Story={
62
+
args: {
63
+
error: {
64
+
status: 404,
65
+
message: 'The page you are looking for does not exist.',
66
+
}asNuxtError,
67
+
},
68
+
}
69
+
70
+
/** Error with a detailed message to test text wrapping and layout. */
71
+
exportconstLongMessage: Story={
72
+
args: {
73
+
error: {
74
+
status: 500,
75
+
message:
76
+
'An unexpected error occurred while processing your request. Our team has been notified and is working to resolve the issue. Please try again in a few moments.',
0 commit comments