We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc9d562 commit 0521e71Copy full SHA for 0521e71
1 file changed
pages/api/generate-css.ts
@@ -62,13 +62,20 @@ export default async function handler(
62
63
//
64
} else {
65
- res.status(500).send(error.toString());
+ res
66
+ .status(200)
67
+ .send(error.reason || error.toString() || "500 Server Error");
68
doneProcessing = true;
69
}
70
71
72
73
74
75
+ .send(
76
+ (error ? error.reason || error.toString() : "") ||
77
+ "500 Server Error"
78
+ );
79
80
81
0 commit comments