Added INA HTTP status codes. Closes #1
This commit is contained in:
parent
4dbc2bbc08
commit
f6759afd31
3 changed files with 195 additions and 161 deletions
15
README.md
15
README.md
|
@ -1,7 +1,9 @@
|
|||
# HttpStatus JSP Tag Library
|
||||
|
||||
[](http://opensource.org/licenses/BSD-3-Clause) [](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)
|
||||
[](https://snyk.io/test/github/ethauvin/httpstatus?targetFile=build.gradle) [](https://travis-ci.org/ethauvin/HttpStatus) [](https://ci.appveyor.com/project/ethauvin/httpstatus) [](https://circleci.com/gh/ethauvin/HttpStatus/tree/master)
|
||||
[](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)
|
||||
|
||||
|
||||
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.
|
||||
|
@ -69,10 +71,11 @@ Attribute | Description
|
|||
The reasons are defined in a [ResourceBundle](http://docs.oracle.com/javase/8/docs/api/java/util/ResourceBundle.html) properties as follows:
|
||||
|
||||
Status Code | Reason
|
||||
----------- | -------------------------------
|
||||
----------- | -----------------------------------
|
||||
`100` | Continue
|
||||
`101` | Switching Protocols
|
||||
`102` | Processing
|
||||
`103` | Early Hints
|
||||
`200` | OK
|
||||
`201` | Created
|
||||
`202` | Accepted
|
||||
|
@ -85,7 +88,7 @@ Status Code | Reason
|
|||
`226` | IM Used
|
||||
`300` | Multiple Choices
|
||||
`301` | Moved Permanently
|
||||
`302` | Moved Temporarily
|
||||
`302` | Found/Moved Temporarily
|
||||
`303` | See Other
|
||||
`304` | Not Modified
|
||||
`305` | Use Proxy
|
||||
|
@ -105,7 +108,7 @@ Status Code | Reason
|
|||
`410` | Gone
|
||||
`411` | Length Required
|
||||
`412` | Precondition Failed
|
||||
`413` | Request Entity Too Large
|
||||
`413` | Request Entity/Payload Too Large
|
||||
`414` | Request-URI Too Long
|
||||
`415` | Unsupported Media Type
|
||||
`416` | Requested Range Not Satisfiable
|
||||
|
@ -156,7 +159,7 @@ Include the following in your `build.gradle` file:
|
|||
|
||||
```gradle
|
||||
dependencies {
|
||||
compile 'net.thauvin.erik.httpstatus:httpstatus:1.0.3'
|
||||
compile 'net.thauvin.erik.httpstatus:httpstatus:1.0.4'
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -166,6 +169,6 @@ or as a Maven artifact:
|
|||
<dependency>
|
||||
<groupId>net.thauvin.erik.httpstatus</groupId>
|
||||
<artifactId>httpstatus</artifactId>
|
||||
<version>1.0.3</version>
|
||||
<version>1.0.4</version>
|
||||
</dependency>
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue