1 | String formCreated() {↵ | | 1 | String formOverloaded() {↵
|
2 | return formError("201 Created", "Object was created");↵ | | 2 | return formError("502 Server overloaded", "Try again latter");↵
|
3 | }↵ | | 3 | }↵
|
|
4 | /**↵ | | 4 | /**↵
|
5 | * Indicates the document was accepted.↵ | | 5 | * Indicates the request took to long.↵
|
6 | * ↵ | | 6 | * ↵
|
7 | * @return The header in a string;↵ | | 7 | * @return The header in a string;↵
|
8 | */↵ | | 8 | */↵
|
9 | public static String formAccepted() {↵ | | 9 | public static String formTimeout() {↵
|
10 | return formError("202 Accepted", "Object checked in");↵ | | 10 | return formError("503 Gateway timeout", "The connection timed out");↵
|
11 | }↵ | | 11 | }↵
|
|
12 | /**↵ | | 12 | /**↵
|
13 | * Indicates only a partial responce was sent.↵ | | 13 | * Indicates the client's proxies could not locate a server.↵
|
14 | * ↵ | | 14 | * ↵
|
15 | * @return The header in a string;↵ | | 15 | * @return The header in a string;↵
|
16 | */↵ | | 16 | */↵
|
17 | public static String formPartial() {↵ | | 17 | public static String formServerNotFound() {↵
|
18 | return formError("203 Partial", "Only partail document available");↵ | | 18 | return formError("503 Gateway timeout", "The requested server was not found");↵
|
19 | }↵ | | 19 | }↵
|
|
20 | /**↵ | | 20 | /**↵
|
21 | * Indicates a requested URL has moved to a new address or name.↵ | | 21 | * Indicates the client is not allowed to access the object.↵
|
22 | * ↵ | | 22 | * ↵
|
23 | * @return The header in a string;↵ | | 23 | * @return The header in a string;↵
|
24 | */↵ | | 24 | */↵
|
25 | public static String formMoved() {↵ | | 25 | public static String form↵
|
26 | // 300 codes tell client to do actions↵ | | 26 | NotAllowed() {↵
|
27 | return formError("301 Moved", "File has moved");↵ | | 27 | return formError("403 Access Denied", "Access is not allowed");↵
|
28 | } | | 28 | }
|