type define ApiErrorCode and DbErrorCode
Merge branch 'fixbug_type_error_code'

* fixbug_type_error_code:
  type define ApiErrorCode and DbErrorCode