搜尋

首頁  >  問答  >  主體

java - Spring:Can we create custom HTTP Status codes ?

Can we create custom HTTP Status codes ?

怪我咯怪我咯2848 天前731

全部回覆(1)我來回復

  • 黄舟

    黄舟2017-04-18 10:36:24

    當然,你可以使用原始servlet api HttpServletResponse,

    雷雷

    但是不建議使用不存在的HTTP狀態碼,
    因為客戶端不知道它意味著什麼

    回覆
    0
  • 取消回覆