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
But for me i kinda prefer having standard patterns across all the apis
return {
status: false,
error message
}