Skip to content

Commit ea0a4c2

Browse files
committed
Fix errors on README file
1 parent 329ed49 commit ea0a4c2

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ integrate or debug microservices or APIs.
2020

2121
### Available enums
2222

23-
`StatusCode, StatusPhrase, StatusDescription, , StatusLabel, RequestMethod`
23+
`RequestMethod, StatusCode, StatusPhrase, StatusDescription, StatusLabel`
2424

2525
### RequestMethod
2626

@@ -29,7 +29,7 @@ RequestMethod.GET;
2929

3030
// Return "GET"
3131

32-
StatusCode.POST;
32+
RequestMethod.POST;
3333

3434
// Return "POST"
3535
```
@@ -53,15 +53,15 @@ StatusPhrase.PROCESSING;
5353

5454
// Return "Processing"
5555

56-
StatusCode.MOVED_PERMANENTLY;
56+
StatusPhrase.MOVED_PERMANENTLY;
5757

5858
// Return "Moved Permanently"
5959
```
6060

6161
### StatusDescription
6262

6363
```javascript
64-
StatusPhrase.CREATED;
64+
StatusDescription.CREATED;
6565

6666
// Return "The request succeeded, and a new resource was created as a result. This is typically the response sent after POST requests, or some PUT requests."
6767
```
@@ -85,17 +85,17 @@ StatusLabel.ALREADY_REPORTED;
8585
### getStatusPhraseByCode
8686

8787
```javascript
88-
getStatusPhraseByCode(StatusLabel.PROXY_AUTHENTICATION_REQUIRED);
88+
getStatusPhraseByCode(StatusCode.PROXY_AUTHENTICATION_REQUIRED);
8989

9090
// Return "Proxy Authentication Required"
9191
```
9292

9393
### getStatusDescriptionByCode
9494

9595
```javascript
96-
getStatusDescriptionByCode(StatusLabel.BAD_GATEWAY);
96+
getStatusDescriptionByCode(StatusCode.BAD_GATEWAY);
9797

98-
// Return "Bad Gateway"
98+
// Return "This error response means that the server, while working as a gateway to get a response needed to handle the request, got an invalid response."
9999
```
100100

101101
### makeHttpResponsesDictionary

0 commit comments

Comments
 (0)