Skip to content

HTTP状态码使用问题 #676

Closed
@downdawn

Description

@downdawn

401未授权,未登录、Token 失效
403禁止访问,已登录但无权限、账号被封

问题一:现在需要jwt的接口,直接访问返回的是403,但是应该是401
问题二:很多地方使用403不合适,比如已注册应该是ConflictError409比较合适

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions