Search
Star
Feedback
Setup for Free
ยฉ 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
best practices to throw error on backend - Theo's Typesafe Cult
TTC
Theo's Typesafe Cult
โข
3y 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
}
return {
status: false,
error message
}
Theo's Typesafe Cult
Join
26,564
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Best practices or course on writing a production-grade NextJS backend?
TTC
Theo's Typesafe Cult / questions
4y ago
Best practices for typesafe error handling
TTC
Theo's Typesafe Cult / questions
3y ago