throw new Error('asdasdad')
这样会返回{
error: asdasdad, error_code: 500,
}
如何指定error_code呢?
例如 throw new Error('asdasdad', 400)
浮云间
相关分类