1 | String formNotImplemented() {↵ | | 1 | String formCreated() {↵
|
2 | return formError("501 Method not implemented", "Service not implemented");↵ | | 2 | return formError("201 ↵
|
3 | }↵ | | |
|
|
4 | /**↵ | | |
|
5 | * Server is overloaded, client should try again lat↵ | | 3 | Created", "Object was created");↵
|
| | | 4 | }↵
|
|
| | | 5 | /**↵
|
6 | ter.↵ | | 6 | * Indicates the document was accepted.↵
|
7 | * ↵ | | 7 | * ↵
|
8 | * @return The header in a string;↵ | | 8 | * @return The header in a string;↵
|
9 | */↵ | | 9 | */↵
|
10 | public static String formOverloaded() {↵ | | 10 | public static String formAccepted() {↵
|
11 | return formError("502 Server overloaded", "Try again latter");↵ | | 11 | return formError("202 ↵
|
12 | }↵ | | |
|
|
13 | /**↵ | | |
|
14 | * Indicates the request took to long↵ | | 12 | Accepted", "Object checked in");↵
|
| | | 13 | }↵
|
|
| | | 14 | /**↵
|
15 | .↵ | | 15 | * Indicates only a partial responce was sent.↵
|
16 | * ↵ | | 16 | * ↵
|
17 | * @return The header in a string;↵ | | 17 | * @return The header in a string;↵
|
18 | */↵ | | 18 | */↵
|
19 | public static String formTimeout() {↵ | | 19 | public static String formPartial() {↵
|
20 | return formError("503 Gateway timeout", "The connection timed out");↵ | | 20 | return formError("203 ↵
|
21 | }↵ | | |
|
|
22 | /**↵ | | |
|
23 | * Indicates the client's proxies could not locate a server↵ | | 21 | Partial", "Only partail document available");↵
|
| | | 22 | }↵
|
|
| | | 23 | /**↵
|
24 | .↵ | | 24 | * Indicates a requested URL has moved to a new address or name.↵
|
25 | * ↵ | | 25 | * ↵
|
26 | * @return The header in a string;↵ | | 26 | * @return The header in a string;↵
|
27 | */↵ | | 27 | */↵
|
28 | public static String formServerNotFound() {↵ | | 28 | public static String form↵
|
29 | return formError("503 Gateway timeout", "The requested server was not foun↵ | | 29 | Moved() {↵
|
| | | 30 | // 300 codes tell client to do actions↵
|
30 | d");↵ | | 31 | return formError("301 Moved", "File has moved");↵
|
31 | }↵ | | 32 | }↵
|
|
32 | /**↵ | | 33 | /**↵
|
33 | * Indicates the client is not allowed to access the object.↵ | | 34 | * Never seen this used.↵
|
34 | * ↵ | | 35 | * ↵
|
35 | * @return The header in a string;↵ | | 36 | * @return The header in a string;↵
|
36 | */↵ | | 37 | */↵
|
37 | public static String formNotAllowed() {↵ | | 38 | public static String formFound() {↵
|
38 | return formError("403 Access Denied", "Access is not allowed");↵ | | 39 | return formError("302 Found", "Object was found");↵
|
39 | | | 40 |
|