diff --git a/README.md b/README.md
index 8fa5e6c..78f4b57 100644
--- a/README.md
+++ b/README.md
@@ -53,6 +53,21 @@ The `
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" %>
@@ -125,6 +122,28 @@ code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warni
hs:code
The <hs:code/>
tag displays the current HTTP status code, if any. A shorthand for:
+hs:message
+The <hs:message/>
tag displays the cause of current error message, if any. A shorthand for:
+
+Optional attributes are:
+
+
+
+Attribute
+Description
+
+
+
+
+default
+The fallback value to output, if no error message is available.
+
+
+escapeXml
+Converts <, >, &, ', " to their corresponding entity codes. Value is true
by default.
+
+
+
hs:reason
The <hs:reason/>
tag displays the reason for a HTTP status code, if any. Optional attributes are:
@@ -211,157 +230,165 @@ code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warni
Already Reported
+218
+This is fine
+
+
226
IM Used
-
+
300
Multiple Choices
-
+
301
Moved Permanently
-
+
302
Found/Moved Temporarily
-
+
303
See Other
-
+
304
Not Modified
-
+
305
Use Proxy
-
+
306
Switch Proxy
-
+
307
Temporary Redirect
-
+
308
Permanent Redirect
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
402
Payment Required
-
+
403
Forbidden
-
+
404
Not Found
-
+
405
Method Not Allowed
-
+
406
Not Acceptable
-
+
407
Proxy Authentication Required
-
+
408
Request Timeout
-
+
409
Conflict
-
+
410
Gone
-
+
411
Length Required
-
+
412
Precondition Failed
-
+
413
Request Entity/Payload Too Large
-
+
414
Request-URI Too Long
-
+
415
Unsupported Media Type
-
+
416
Requested Range Not Satisfiable
-
+
417
Expectation Failed
-
+
418
I'm A Teapot
-
+
419
Insufficient Space on Resource
-
+
420
Method Failure
-
+
421
Misdirected Request
-
+
422
Unprocessable Entity
-
+
423
Locked
-
+
424
Failed Dependency
-
+
426
Upgrade Required
-
+
428
Precondition Required
-
+
429
Too Many Requests
+
+430
+Request Header Fields Too Large
+
431
Request Header Fields Too Large
@@ -387,20 +414,28 @@ code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warni
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
+SSL Certificate Error
496
-No Cert
+No SSL Certificate
497
-HTTP to HTTPS
+HTTP Request Sent to HTTPS Port
498
@@ -463,9 +498,41 @@ code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warni
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
@@ -479,36 +546,36 @@ code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warni
Usage with Gradle or Maven
Include the following in your build.gradle
file:
dependencies {
- compile 'net.thauvin.erik.httpstatus:httpstatus:1.0.4'
+ implementation 'net.thauvin.erik.httpstatus:httpstatus:1.0.5'
}
or as a Maven artifact:
-<dependency>
- <groupId>net.thauvin.erik.httpstatus</groupId>
- <artifactId>httpstatus</artifactId>
- <version>1.0.4</version>
-</dependency>
+<dependency>
+ <groupId>net.thauvin.erik.httpstatus</groupId>
+ <artifactId>httpstatus</artifactId>
+ <version>1.0.5</version>
+</dependency>
Command Line Usage
You can query the reason phrase for status codes as follows:
-
+
If no status code is specified, all will be printed:
-$ java -jar httpstatus-1.0.4.jar
-100: Continue
-101: Switching Protocols
-102: Processing
-103: Early Hints
-200: OK
-201: Created
-202: Accepted
-203: Non-Authoritative Information
-204: No Content
-205: Reset Content
-206: Partial Content
-207: Multi-Status
-208: Already Reported
-226: IM Used
-...
+$ java -jar httpstatus-1.0.5.jar
+100: Continue
+101: Switching Protocols
+102: Processing
+103: Early Hints
+200: OK
+201: Created
+202: Accepted
+203: Non-Authoritative Information
+204: No Content
+205: Reset Content
+206: Partial Content
+207: Multi-Status
+208: Already Reported
+226: IM Used
+...