Skip to content

ErrorEnvelope

Schema:ErrorEnvelope

OpenAPI Specification

yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths: {}
components:
  schemas:
    ErrorEnvelope:
      type: object
      description: 业务失败包络(HTTP 常仍 200)
      required:
        - code
        - respMsg
      properties:
        code:
          type: string
          description: 失败业务码
          examples:
            - auth004
        respMsg:
          type: string
          description: 失败原因文案
          examples:
            - 用户名或密码错误
        data:
          description: 失败时多为 null
          type: 'null'
      x-apifox-orders:
        - code
        - respMsg
        - data
      x-apifox-folder: ''
  securitySchemes: {}
servers: []
security: []