You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I figured I'd inquire as to the stance Micronaut takes toward extending the HttpStatus enum before setting to work handling the IllegalArgumentException - is it an option to add HTTP 525 SSL Handshake Failed used by Cloudflare?
To me I can understand the answer being "no" and I can understand the answer being "yes"; the reason I thought to ask is because a non-trival volume of Internet traffic transits Cloudflare servers these days, so some of their custom HTTP status codes might be somewhat common in the wild.
If the answer is "yes" I'm happy to add it (or others if there is a desire to cover more of these other custom HTTP status codes I'm seeing can be returned by Cloudflare), if the answer is "no" I'll go about things with the IllegalArgumentException handling - just let know please. Thanks in advance!
The text was updated successfully, but these errors were encountered:
Feature description
Howdy.I searched around previous issues and found some reference to the topic of non-standard HTTP status codes:
However, ^^^these ones are focused on a server returning a non-standard HTTP status code not found in the HttpStatus enum.
This issue looks to focus more on encountering a non-standard HTTP status code from the
HttpClient
. It looks like things landed on throwing an IllegalArgument exception from HttpStatus::valueOf.We recently came to realize that Cloudflare employs
HTTP 525 SSL Handshake Failed
while conducting some disaster testing.We can definitely go the route of catching the IllegalArgumentException thrown by HttpStatus::valueOf, but I do see a handful of status codes that aren't "official", so to speak, in the HttpStatus enum.
I figured I'd inquire as to the stance Micronaut takes toward extending the HttpStatus enum before setting to work handling the
IllegalArgumentException
- is it an option to addHTTP 525 SSL Handshake Failed
used by Cloudflare?To me I can understand the answer being "no" and I can understand the answer being "yes"; the reason I thought to ask is because a non-trival volume of Internet traffic transits Cloudflare servers these days, so some of their custom HTTP status codes might be somewhat common in the wild.
If the answer is "yes" I'm happy to add it (or others if there is a desire to cover more of these other custom HTTP status codes I'm seeing can be returned by Cloudflare), if the answer is "no" I'll go about things with the
IllegalArgumentException
handling - just let know please. Thanks in advance!The text was updated successfully, but these errors were encountered: