XF_Index/mastermind/OutputMessage.md
2023-05-04 23:04:29 +08:00

19 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# OutputMessage 标准对照表
| 序号 | output内容 | HTTP状态码 | 中文解释 |
|-----|-------------------|---------|------------------------------|
| 100 | SessionError | 502 | 通讯密钥错误 |
| 200 | Success | 200 | 操作成功 |
| 201 | SuccessButEmail | 200 | 操作成功但邮件发送失败 |
| 300 | SqlInsertFail | 400 | 数据表内容插入失败 |
| 301 | SqlSelectFail | 400 | 数据表内容查询失败 |
| 310 | TokenTooShort | 502 | Token长度过短 |
| 311 | TokenTooLong | 502 | Token长度过长 |
| 400 | usernameFormat | 405 | 用户名格式不符合 格式允许0-9,A-Z,a-z及_ |
| 401 | emailFormat | 405 | 邮箱格式不符合 |
| 402 | userFormat | 405 | 用户格式不符合 |
| 403 | passwordIncorrect | 403 | 密码不正确 |
| 500 | CaptchaEffective | 200 | 激活码任然有效 |
| 600 | AlReadyUser | 403 | 已经有这个用户 |
| 601 | NoUser | 403 | 没有这个用户 |
| | | | |