Skip to content

Releases: ethauvin/HttpStatus

2.0.0

29 Sep 06:17
2178d40

Choose a tag to compare

Summary

  • Getting the reason phrase is now more generic:
    • Reasons.getReasonPhrase(404)
    • Reasons.getReasonPhrase(666, "Unknown Reason")
  • New StatusCode class:
    • StatusCode.isServerError(500)
    • StatusCode.isError(301)
  • New ReasonsClass method:
    • Reasons.getReasonClass(StatusCodeClass.CLIENT_ERROR)
  • Support for JDK 25

What's Changed in 2.0.0

  • Refactor getReasonPhrase method to be more generic in 95f8296
  • Add getReason() static method in 1efd124
  • Add null test for escapeXml in d9f397c
  • Use int instead of String for the first digit in aef0409
  • Add lib/provided location in f9f000f
  • Move the Jakarta libs to the provided scope in 735c972
  • Refactor Utils class in c978499
  • Refactor the main method in 29b061b
  • Make description and examples more Java centric in c7c20d3
  • Add StatusCodeClass in aa73777
  • Add ReasonClass in bf7c0a6
  • Bump bld to version 2.3.0 in a378d20
  • Add OS matrix for Ubuntu, Windows and macOS in ac1209a

Full Changelog: 1.1.1...2.0.0

1.1.1

08 Jun 00:51
71467db

Choose a tag to compare

Full Changelog

Implemented enhancements:

  • Sort command line output #10
  • Update reasons properties status codes #9

1.1.0

29 Sep 11:57

Choose a tag to compare

Full Changelog

Implemented enhancements:

  • Print status code by response classes #8
  • Move to Jakarta EE #7
  • Only use XML character entities in Utils.escapeXml() #6
  • Implement a StatusCode bean to check the status code. #5

1.0.5

20 Mar 04:19

Choose a tag to compare

Full Changelog

Implemented enhancements:

  • Retrieve the error message from the request, if available. #4
  • Add Unofficial Codes #3

1.0.4

08 May 17:04

Choose a tag to compare

Full Changelog

Implemented enhancements:

  • Implement all INA HTTP status codes #1

Fixed bugs:

  • hs:reason always outputs the default value. #2

1.0.3

22 Jan 23:01

Choose a tag to compare

Maven release. No functional change, just updated documentation, etc.

1.0.2

21 Jan 23:20

Choose a tag to compare

Bintray release. No functional change, just updated documentation, etc.

1.0.1

16 Dec 23:42

Choose a tag to compare

Version 1.0.1

1.0

04 Dec 08:50

Choose a tag to compare

1.0

Initial Public Release