The framework predefines some common error codes that developers can use directly:

    https://github.com/gogf/gf/blob/master/errors/gcode/gcode.go

    Error Code - Built-in Codes - 图1warning

    Please note, if business uses integer error codes, <1000 error codes are reserved by the framework, and business error codes should be defined as >1000.