incubator-hugegraph icon indicating copy to clipboard operation
incubator-hugegraph copied to clipboard

[Feature] Unify REST API response format for server,pd and store modules

Open Soyaazz opened this issue 8 months ago • 1 comments

Feature Description (功能描述)

Currently, the REST API responses in the server,pd and store modules lack a standardized format.

When a request fails (e.g., Raft group not found, store heartbeat timeout), the error message is often missing or buried in logs rather than being returned in a clear, actionable format to the user.

An example response format is as follows

{
  "code": 200, 
  "message": "success", // hint for user
  "data": { ... }, 
  "status": "OK"
}

Soyaazz avatar Mar 21 '26 08:03 Soyaazz

Hi, assign it to me please.

BrandaoFelipe avatar Mar 22 '26 10:03 BrandaoFelipe