What's the good http status code to return on expired password?

前端 未结 2 1816
-上瘾入骨i
-上瘾入骨i 2021-01-11 11:35

When a password is expired what rest api should return? I mean: username and password are correct, but expired.

Here I found that

The mechanis

2条回答
  •  温柔的废话
    2021-01-11 12:06

    http://getstatuscode.com/419

    Not a part of the HTTP standard, 419 Authentication Timeout denotes that previously valid authentication has expired. It is used as an alternative to 401 Unauthorized in order to differentiate from otherwise authenticated clients being denied access to specific server resources.

提交回复
热议问题