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