responses.yaml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. HealthSuccess:
  2. description: DMS服务正常
  3. headers:
  4. X-Request-Id:
  5. description: 与响应体requestId相同
  6. schema:
  7. type: string
  8. format: uuid
  9. content:
  10. application/json:
  11. schema:
  12. $ref: './schemas.yaml#/HealthResponse'
  13. InternalError:
  14. description: 未处理的服务器错误
  15. headers:
  16. X-Request-Id:
  17. description: 与响应体requestId相同
  18. schema:
  19. type: string
  20. format: uuid
  21. content:
  22. application/json:
  23. schema:
  24. $ref: './schemas.yaml#/ErrorResponse'
  25. InvalidArgument:
  26. description: 请求参数错误
  27. content:
  28. application/json:
  29. schema:
  30. $ref: './schemas.yaml#/ErrorResponse'
  31. AuthenticationError:
  32. description: 认证失败、Token过期、用户禁用或认证版本失效
  33. content:
  34. application/json:
  35. schema:
  36. $ref: './schemas.yaml#/ErrorResponse'
  37. Forbidden:
  38. description: 当前用户无权执行该操作
  39. content:
  40. application/json:
  41. schema:
  42. $ref: './schemas.yaml#/ErrorResponse'
  43. NotFound:
  44. description: 分类不存在或已逻辑删除
  45. content:
  46. application/json:
  47. schema:
  48. $ref: './schemas.yaml#/ErrorResponse'
  49. Conflict:
  50. description: 数据版本冲突、方案名称冲突、分类编码重复或分类仍被占用
  51. content:
  52. application/json:
  53. schema:
  54. $ref: './schemas.yaml#/ErrorResponse'
  55. PayloadTooLarge:
  56. description: 单文件、批量数量或请求总大小超过限制
  57. content:
  58. application/json:
  59. schema:
  60. $ref: './schemas.yaml#/ErrorResponse'
  61. UnsupportedMedia:
  62. description: 文件类型不支持、文件结构损坏或Office不可预览
  63. content:
  64. application/json:
  65. schema:
  66. $ref: './schemas.yaml#/ErrorResponse'