提交 | 用户 | 时间
|
0ca254
|
1 |
package com.jcdm.common.constant; |
A |
2 |
|
|
3 |
/** |
|
4 |
* 返回状态码 |
|
5 |
* |
|
6 |
* @author jc |
|
7 |
*/ |
|
8 |
public class HttpStatus |
|
9 |
{ |
|
10 |
/** |
|
11 |
* 操作成功 |
|
12 |
*/ |
|
13 |
public static final int SUCCESS = 200; |
|
14 |
|
|
15 |
/** |
|
16 |
* 对象创建成功 |
|
17 |
*/ |
|
18 |
public static final int CREATED = 201; |
|
19 |
|
|
20 |
/** |
|
21 |
* 请求已经被接受 |
|
22 |
*/ |
|
23 |
public static final int ACCEPTED = 202; |
|
24 |
|
|
25 |
/** |
|
26 |
* 操作已经执行成功,但是没有返回数据 |
|
27 |
*/ |
|
28 |
public static final int NO_CONTENT = 204; |
|
29 |
|
|
30 |
/** |
|
31 |
* 资源已被移除 |
|
32 |
*/ |
|
33 |
public static final int MOVED_PERM = 301; |
|
34 |
|
|
35 |
/** |
|
36 |
* 重定向 |
|
37 |
*/ |
|
38 |
public static final int SEE_OTHER = 303; |
|
39 |
|
|
40 |
/** |
|
41 |
* 资源没有被修改 |
|
42 |
*/ |
|
43 |
public static final int NOT_MODIFIED = 304; |
|
44 |
|
|
45 |
/** |
|
46 |
* 参数列表错误(缺少,格式不匹配) |
|
47 |
*/ |
|
48 |
public static final int BAD_REQUEST = 400; |
|
49 |
|
|
50 |
/** |
|
51 |
* 未授权 |
|
52 |
*/ |
|
53 |
public static final int UNAUTHORIZED = 401; |
|
54 |
|
|
55 |
/** |
|
56 |
* 访问受限,授权过期 |
|
57 |
*/ |
|
58 |
public static final int FORBIDDEN = 403; |
|
59 |
|
|
60 |
/** |
|
61 |
* 资源,服务未找到 |
|
62 |
*/ |
|
63 |
public static final int NOT_FOUND = 404; |
|
64 |
|
|
65 |
/** |
|
66 |
* 不允许的http方法 |
|
67 |
*/ |
|
68 |
public static final int BAD_METHOD = 405; |
|
69 |
|
|
70 |
/** |
|
71 |
* 资源冲突,或者资源被锁 |
|
72 |
*/ |
|
73 |
public static final int CONFLICT = 409; |
|
74 |
|
|
75 |
/** |
|
76 |
* 不支持的数据,媒体类型 |
|
77 |
*/ |
|
78 |
public static final int UNSUPPORTED_TYPE = 415; |
|
79 |
|
|
80 |
/** |
|
81 |
* 系统内部错误 |
|
82 |
*/ |
|
83 |
public static final int ERROR = 500; |
|
84 |
|
|
85 |
/** |
|
86 |
* 接口未实现 |
|
87 |
*/ |
|
88 |
public static final int NOT_IMPLEMENTED = 501; |
|
89 |
|
|
90 |
/** |
|
91 |
* 系统警告消息 |
|
92 |
*/ |
|
93 |
public static final int WARN = 601; |
|
94 |
} |