Cysharp / YetAnotherHttpHandler

YetAnotherHttpHandler brings the power of HTTP/2 (and gRPC) to Unity and .NET Standard.
MIT License
350 stars 31 forks source link

Better error messages #86

Closed mayuki closed 2 months ago

mayuki commented 2 months ago

This fixes an issue where error messages were unclear after updating hyper. In addition, the error code name will be included in the message regarding HTTP/2 error codes.

Before

client error (Connect)
The HTTP/2 server reset the stream. HTTP/2 error code (0xd).

After

client error (Connect): dns error: No such host is known. (os error 11001)
The HTTP/2 server closed the connection or reset the stream. HTTP/2 error code 'HTTP_1_1_REQUIRED' (0xd).