搜索

首页  >  问答  >  正文

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

Can we create custom HTTP Status codes ?

怪我咯怪我咯2848 天前730

全部回复(1)我来回复

  • 黄舟

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

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

    雷雷

    但是不建议使用不存在的HTTP状态码,
    因为客户端不知道它意味着什么

    回复
    0
  • 取消回复