Theo's Typesafe CultTTC
Theo's Typesafe Cult3y ago
42 replies
Lopen

best practices to throw error on backend

I see people using throw new error and throw error

But for me i kinda prefer having standard patterns across all the apis
return {
    status: false,
    error message 
}
Was this page helpful?