Skip to content

Commit 7742b5c

Browse files
committed
Add description to redirection messages
1 parent f43154b commit 7742b5c

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

src/StatusCode/index.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,31 +74,31 @@ export enum StatusCode {
7474
*/
7575
IM_USED = 226,
7676
/**
77-
* @description - @
77+
* @description The request has more than one possible response.
7878
*/
7979
MULTIPLE_CHOICES = 300,
8080
/**
81-
* @description - @
81+
* @description The URL of the requested resource has been changed permanently. The new URL is given in the response.
8282
*/
8383
MOVED_PERMANENTLY = 301,
8484
/**
85-
* @description - @
85+
* @description This response code means that the URI of requested resource has been changed temporarily. Further changes in the URI might be made in the future. Therefore, this same URI should be used by the client in future requests.
8686
*/
8787
FOUND = 302,
8888
/**
89-
* @description - @
89+
* @description The server sent this response to direct the client to get the requested resource at another URI with a GET request.
9090
*/
9191
SEE_OTHER = 303,
9292
/**
93-
* @description - @
93+
* @description This is used for caching purposes. It tells the client that the response has not been modified, so the client can continue to use the same cached version of the response.
9494
*/
9595
NOT_MODIFIED = 304,
9696
/**
97-
* @description - @
97+
* @description The server sends this response to direct the client to get the requested resource at another URI with same method that was used in the prior request.
9898
*/
9999
TEMPORARY_REDIRECT = 307,
100100
/**
101-
* @description - @
101+
* @description This means that the resource is now permanently located at another URI, specified by the Location: HTTP Response header. This has the same semantics as the 301 Moved Permanently HTTP response code, with the exception that the user agent must not change the HTTP method used: if a POST was used in the first request, a POST must be used in the second request.
102102
*/
103103
PERMANENT_REDIRECT = 308,
104104
/**

src/StatusDescription/index.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,31 +62,31 @@ export enum StatusDescription {
6262
*/
6363
IM_USED = "The server has fulfilled a GET request for the resource, and the response is a representation of the result of one or more instance-manipulations applied to the current instance.",
6464
/**
65-
* @description - StatusCode =
65+
* @description - StatusCode = 300
6666
*/
67-
MULTIPLE_CHOICES = "The request has more than one possible response. The user agent or user should choose one of them. (There is no standardized way of choosing one of the responses, but HTML links to the possibilities are recommended so the user can pick.)",
67+
MULTIPLE_CHOICES = "The request has more than one possible response.",
6868
/**
69-
* @description - StatusCode =
69+
* @description - StatusCode = 301
7070
*/
7171
MOVED_PERMANENTLY = "The URL of the requested resource has been changed permanently. The new URL is given in the response.",
7272
/**
73-
* @description - StatusCode =
73+
* @description - StatusCode = 302
7474
*/
7575
FOUND = "This response code means that the URI of requested resource has been changed temporarily. Further changes in the URI might be made in the future. Therefore, this same URI should be used by the client in future requests.",
7676
/**
77-
* @description - StatusCode =
77+
* @description - StatusCode = 303
7878
*/
7979
SEE_OTHER = "The server sent this response to direct the client to get the requested resource at another URI with a GET request.",
8080
/**
81-
* @description - StatusCode =
81+
* @description - StatusCode = 304
8282
*/
8383
NOT_MODIFIED = "This is used for caching purposes. It tells the client that the response has not been modified, so the client can continue to use the same cached version of the response.",
8484
/**
85-
* @description - StatusCode =
85+
* @description - StatusCode = 307
8686
*/
87-
TEMPORARY_REDIRECT = "The server sends this response to direct the client to get the requested resource at another URI with same method that was used in the prior request. This has the same semantics as the 302 Found HTTP response code, with the exception that the user agent must not change the HTTP method used: if a POST was used in the first request, a POST must be used in the second request.",
87+
TEMPORARY_REDIRECT = "The server sends this response to direct the client to get the requested resource at another URI with same method that was used in the prior request.",
8888
/**
89-
* @description - StatusCode =
89+
* @description - StatusCode = 308
9090
*/
9191
PERMANENT_REDIRECT = "This means that the resource is now permanently located at another URI, specified by the Location: HTTP Response header. This has the same semantics as the 301 Moved Permanently HTTP response code, with the exception that the user agent must not change the HTTP method used: if a POST was used in the first request, a POST must be used in the second request.",
9292
/**

0 commit comments

Comments
 (0)