/
RestConstants.ts
112 lines (98 loc) · 2.14 KB
/
RestConstants.ts
1
2
3
4
5
6
7
8
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
/*
* This program and the accompanying materials are made available under the terms of the
* Eclipse Public License v2.0 which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-v20.html
*
* SPDX-License-Identifier: EPL-2.0
*
* Copyright Contributors to the Zowe Project.
*
*/
/**
* Constants used for REST client, etc.
* @export
* @class RestConstants
*/
export class RestConstants {
/**
* 200
* @static
* @memberof RestConstants
*/
public static readonly HTTP_STATUS_200 = 200;
/**
* 201
* @static
* @memberof RestConstants
*/
public static readonly HTTP_STATUS_201 = 201;
/**
* 202
* @static
* @memberof RestConstants
*/
public static readonly HTTP_STATUS_202 = 202; // accepted
/**
* 204
* @static
* @memberof RestConstants
*/
public static readonly HTTP_STATUS_204 = 204;
/**
* 300
* @static
* @memberof RestConstants
*/
public static readonly HTTP_STATUS_300 = 300;
/**
* 400
* @static
* @memberof RestConstants
*/
public static readonly HTTP_STATUS_400 = 400;
/**
* 401
* @static
* @memberof RestConstants
*/
public static readonly HTTP_STATUS_401 = 401;
/**
* 404
* @static
* @memberof RestConstants
*/
public static readonly HTTP_STATUS_404 = 404;
/**
* 500
* @static
* @memberof RestConstants
*/
public static readonly HTTP_STATUS_500 = 500;
/**
* Set cookie property
* @static
* @type {string}
* @memberof RestConstants
*/
public static readonly PROP_COOKIE: string = "set-cookie";
/**
* Query identifier
* @static
* @memberof RestConstants
*/
public static readonly QUERY_ID = "?";
/**
* Basic auth
* @static
* @type {string}
* @memberof RestConstants
*/
public static readonly BASIC_PREFIX: string = "Basic ";
/**
* Bearer auth
* @static
* @type {string}
* @memberof RestConstants
*/
public static readonly BEARER_PREFIX: string = "Bearer ";
}