diff --git a/README.md b/README.md
index e5b1790..bacf188 100644
--- a/README.md
+++ b/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:
A simple JSP Tag Library to display the code, reason and/or cause for HTTP status codes in JSP error pages.
For example:
-<%@ page isErrorPage="true" %>
-<%@ taglib prefix="hs" uri="http://erik.thauvin.net/taglibs/httpstatus" %>
-<html><head>
-<title><hs:code/> <hs:reason default="Server Error"/></title>
-</head>
-<h1><hs:reason default="Server Error"/></h1>
-Cause: <pre><hs:cause default="Unable to complete your request."/></pre>
-...
<%@ page isErrorPage="true" %>
+<%@ taglib prefix="hs" uri="http://erik.thauvin.net/taglibs/httpstatus" %>
+<html><head>
+<title><hs:code/> <hs:reason default="Server Error"/></title>
+</head>
+<h1><hs:reason default="Server Error"/></h1>
+Cause: <pre><hs:cause default="Unable to complete your request."/></pre>
+...
or
-<%@ page isErrorPage="true" import="net.thauvin.erik.httpstatus.Reasons" %>
-<%= Reasons.getReasonPhrase(pageContext.getErrorData().getStatusCode()) %>
<%@ page isErrorPage="true" import="net.thauvin.erik.httpstatus.Reasons" %>
+<%= Reasons.getReasonPhrase(pageContext.getErrorData().getStatusCode()) %>
would display on a 501 status code:
-Not Implemented
+Not Implemented
+
The <hs:cause/>
tag displays the cause of current HTTP status code, if any. A shorthand for:
<%= pageContext.getErrorData().getThrowable().getCause().getLocalizedMessage() %>
Optional attributes are:
Attribute | @@ -91,20 +120,16 @@ Cause: <pre><hs:cause default<||
---|---|---|
escapeXml |
-Converts <, >, &, ', " to their corresponding entity codes. Value is true by default. |
+Converts <, >, &, ', " to their corresponding entity codes. Value is true by default. |
The <hs:code/>
tag displays the current HTTP status code, if any. A shorthand for:
<%= pageContext.getErrorData().getStatusCode() %>
The <hs:reason/>
tag displays the reason for a HTTP status code, if any. Optional attributes are:
Attribute | @@ -122,7 +147,7 @@ Cause: <pre><hs:cause default<||
---|---|---|
escapeXml |
-Converts <, >, &, ', " to their corresponding entity codes. Value is true by default. |
+Converts <, >, &, ', " to their corresponding entity codes. Value is true by default. |
103
200
201
202
203
204
205
206
207
208
226
300
301
302
302
303
304
305
306
307
308
400
401
402
403
404
405
406
407
408
409
410
411
412
413
413
414
415
416
417
418
419
420
421
422
423
424
426
428
429
431
440
444
449
450
451
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
520
522
598
599
Include the following in your build.gradle
file:
dependencies {
- compile 'net.thauvin.erik.httpstatus:httpstatus:1.0.3'
-}
+ compile 'net.thauvin.erik.httpstatus:httpstatus:1.0.4'
+}
+
or as a Maven artifact:
-<dependency>
- <groupId>net.thauvin.erik.httpstatus</groupId>
- <artifactId>httpstatus</artifactId>
- <version>1.0.3</version>
-</dependency>