Skip to main content

upload_error

Function upload_error 

Source
fn upload_error<T: Serialize>(
    status: StatusCode,
    msg: T,
) -> (StatusCode, Json<Value>)
Expand description

构造统一的 JSON 错误响应:{ "success": false, "error": msg }