Add Unofficial Codes from Cloudflare, IIS, Nginx, and AWS. Closes #3
This commit is contained in:
parent
9d21dd76c0
commit
66db0b801f
2 changed files with 35 additions and 11 deletions
28
README.md
28
README.md
|
@ -2,7 +2,7 @@
|
|||
|
||||
[](https://github.com/ethauvin/httpstatus/releases/latest) [](https://maven-badges.herokuapp.com/maven-central/net.thauvin.erik.httpstatus/httpstatus) [](https://bintray.com/ethauvin/maven/HttpStatus/_latestVersion)
|
||||
[](http://opensource.org/licenses/BSD-3-Clause) [](https://snyk.io/test/github/ethauvin/httpstatus?targetFile=build.gradle) [](https://sonarcloud.io/dashboard?id=ethauvin_HttpStatus)
|
||||
[](https://travis-ci.org/ethauvin/HttpStatus) [](https://ci.appveyor.com/project/ethauvin/httpstatus) [](https://circleci.com/gh/ethauvin/HttpStatus/tree/master)
|
||||
[](https://travis-ci.com/ethauvin/HttpStatus) [](https://ci.appveyor.com/project/ethauvin/httpstatus) [](https://circleci.com/gh/ethauvin/HttpStatus/tree/master)
|
||||
|
||||
|
||||
A simple [JSP](http://www.oracle.com/technetwork/java/javaee/jsp/index.html) Tag Library to display the [code](#hscode), [reason](#hsreason) and/or [cause](#hscode) for [HTTP status codes](http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html) in JSP error pages.
|
||||
|
@ -80,6 +80,7 @@ Status Code | Reason
|
|||
`206` | Partial Content
|
||||
`207` | Multi-Status
|
||||
`208` | Already Reported
|
||||
`218` | This is fine
|
||||
`226` | IM Used
|
||||
`300` | Multiple Choices
|
||||
`301` | Moved Permanently
|
||||
|
@ -118,16 +119,19 @@ Status Code | Reason
|
|||
`426` | Upgrade Required
|
||||
`428` | Precondition Required
|
||||
`429` | Too Many Requests
|
||||
`430` | Request Header Fields Too Large
|
||||
`431` | Request Header Fields Too Large
|
||||
`440` | Login Timeout
|
||||
`444` | No Response
|
||||
`449` | Retry With
|
||||
`450` | Blocked by Windows Parental Controls
|
||||
`451` | Unavailable For Legal Reasons
|
||||
`460` | Client Closed Connection Before Load Balancer Idle Timeout
|
||||
`463` | X-Forwarded-For Header with More than 30 IP Addresses
|
||||
`494` | Request Header Too Large
|
||||
`495` | Cert Error
|
||||
`496` | No Cert
|
||||
`497` | HTTP to HTTPS
|
||||
`495` | SSL Certificate Error
|
||||
`496` | No SSL Certificate
|
||||
`497` | HTTP Request Sent to HTTPS Port
|
||||
`498` | Token Expired/Invalid
|
||||
`499` | Client Closed Request
|
||||
`500` | Internal Server Error
|
||||
|
@ -143,7 +147,15 @@ Status Code | Reason
|
|||
`510` | Not Extended
|
||||
`511` | Network Authentication Required
|
||||
`520` | Unknown Error
|
||||
`521` | Web Server Is Down
|
||||
`522` | Origin Connection Time-out
|
||||
`523` | Origin Is Unreachable
|
||||
`524` | A Timeout Occurred
|
||||
`525` | SSL Handshake Failed
|
||||
`526` | Invalid SSL Certificate
|
||||
`527` | Railgun Error
|
||||
`529` | Site is overloaded
|
||||
`530` | Site is frozen
|
||||
`598` | Network Read Timeout Error
|
||||
`599` | Network Connect Timeout Error
|
||||
|
||||
|
@ -152,7 +164,7 @@ Include the following in your `build.gradle` file:
|
|||
|
||||
```gradle
|
||||
dependencies {
|
||||
compile 'net.thauvin.erik.httpstatus:httpstatus:1.0.4'
|
||||
implementation 'net.thauvin.erik.httpstatus:httpstatus:1.0.5'
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -162,7 +174,7 @@ or as a Maven artifact:
|
|||
<dependency>
|
||||
<groupId>net.thauvin.erik.httpstatus</groupId>
|
||||
<artifactId>httpstatus</artifactId>
|
||||
<version>1.0.4</version>
|
||||
<version>1.0.5</version>
|
||||
</dependency>
|
||||
```
|
||||
|
||||
|
@ -170,7 +182,7 @@ or as a Maven artifact:
|
|||
You can query the reason phrase for status codes as follows:
|
||||
|
||||
```sh
|
||||
$ java -jar httpstatus-1.0.4.jar 404 500
|
||||
$ java -jar httpstatus-1.0.5.jar 404 500
|
||||
404: Not Found
|
||||
500: Internal Server Error
|
||||
```
|
||||
|
@ -178,7 +190,7 @@ $ java -jar httpstatus-1.0.4.jar 404 500
|
|||
If no status code is specified, all will be printed:
|
||||
|
||||
```sh
|
||||
$ java -jar httpstatus-1.0.4.jar
|
||||
$ java -jar httpstatus-1.0.5.jar
|
||||
100: Continue
|
||||
101: Switching Protocols
|
||||
102: Processing
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
206=Partial Content
|
||||
207=Multi-Status
|
||||
208=Already Reported
|
||||
218=This is fine
|
||||
226=IM Used
|
||||
300=Multiple Choices
|
||||
301=Moved Permanently
|
||||
|
@ -49,16 +50,19 @@
|
|||
426=Upgrade Required
|
||||
428=Precondition Required
|
||||
429=Too Many Requests
|
||||
430=Request Header Fields Too Large
|
||||
431=Request Header Fields Too Large
|
||||
440=Login Timeout
|
||||
444=No Response
|
||||
449=Retry With
|
||||
450=Blocked by Windows Parental Controls
|
||||
451=Unavailable For Legal Reasons
|
||||
460=Client Closed Connection Before Load Balancer Idle Timeout
|
||||
463=X-Forwarded-For Header with More than 30 IP Addresses
|
||||
494=Request Header Too Large
|
||||
495=Cert Error
|
||||
496=No Cert
|
||||
497=HTTP to HTTPS
|
||||
495=SSL Certificate Error
|
||||
496=No SSL Certificate
|
||||
497=HTTP Request Sent to HTTPS Port
|
||||
498=Token Expired/Invalid
|
||||
499=Client Closed Request
|
||||
500=Internal Server Error
|
||||
|
@ -74,6 +78,14 @@
|
|||
510=Not Extended
|
||||
511=Network Authentication Required
|
||||
520=Unknown Error
|
||||
521=Web Server Is Down
|
||||
522=Origin Connection Time-out
|
||||
523=Origin Is Unreachable
|
||||
524=A Timeout Occurred
|
||||
525=SSL Handshake Failed
|
||||
526=Invalid SSL Certificate
|
||||
527=Railgun Error
|
||||
529=Site is overloaded
|
||||
530=Site is frozen
|
||||
598=Network Read Timeout Error
|
||||
599=Network Connect Timeout Error
|
Loading…
Add table
Add a link
Reference in a new issue