Unify error handling and HTTP statuses
Signed-off-by: Sean Du <do4suki@gmail.com>
This commit is contained in:
@@ -28,7 +28,7 @@ func list(ctx *gin.Context) {
|
||||
ErrorCode: constant.ErrorCodeEventNoEventData,
|
||||
},
|
||||
ReleaseInfo: []any{},
|
||||
StatusCode: 600,
|
||||
StatusCode: constant.ErrorCodeAcceptableError,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user