40x, 50x提示默认使用HTML;50x提示增加原因信息

This commit is contained in:
刘祥超
2022-07-30 10:48:41 +08:00
parent c4dca2df30
commit dfb66775d7
8 changed files with 93 additions and 39 deletions

View File

@@ -33,7 +33,7 @@ func (this *HTTPRequest) doAuth() (shouldStop bool) {
return writer.StatusCode(), nil
}, this.Format)
if err != nil {
this.write50x(err, http.StatusInternalServerError, false)
this.write50x(err, http.StatusInternalServerError, "Failed to execute the AuthPolicy", "认证策略执行失败", false)
return
}
if b {