Blame view

ruoyi-common/src/main/java/com/ruoyi/common/constant/HttpStatus.java 1.67 KB
46444bd0   RuoYi   RuoYi-Vue 1.0
1
2
3
4
5
6
7
  package com.ruoyi.common.constant;

  

  /**

   * 返回状态码

   * 

   * @author ruoyi

   */

9ea0041f   Sxile   常量接口修改为常量类
8
  public class HttpStatus

46444bd0   RuoYi   RuoYi-Vue 1.0
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
  {

      /**

       * 操作成功

       */

      public static final int SUCCESS = 200;

  

      /**

       * 对象创建成功

       */

      public static final int CREATED = 201;

  

      /**

       * 请求已经被接受

       */

      public static final int ACCEPTED = 202;

  

      /**

       * 操作已经执行成功,但是没有返回数据

       */

      public static final int NO_CONTENT = 204;

  

      /**

       * 资源已被移除

       */

      public static final int MOVED_PERM = 301;

  

      /**

       * 重定向

       */

      public static final int SEE_OTHER = 303;

  

      /**

       * 资源没有被修改

       */

      public static final int NOT_MODIFIED = 304;

  

      /**

       * 参数列表错误(缺少,格式不匹配)

       */

      public static final int BAD_REQUEST = 400;

  

      /**

       * 未授权

       */

      public static final int UNAUTHORIZED = 401;

  

      /**

       * 访问受限,授权过期

       */

      public static final int FORBIDDEN = 403;

  

      /**

       * 资源,服务未找到

       */

      public static final int NOT_FOUND = 404;

  

      /**

       * 不允许的http方法

       */

      public static final int BAD_METHOD = 405;

  

      /**

       * 资源冲突,或者资源被锁

       */

      public static final int CONFLICT = 409;

  

      /**

       * 不支持的数据,媒体类型

       */

      public static final int UNSUPPORTED_TYPE = 415;

  

      /**

       * 系统内部错误

       */

      public static final int ERROR = 500;

  

      /**

       * 接口未实现

       */

      public static final int NOT_IMPLEMENTED = 501;

  }