cloudwego / hertz

Go HTTP framework with high-performance and strong-extensibility for building micro-services.
https://www.cloudwego.io
Apache License 2.0
5.04k stars 491 forks source link

Export errMissingFile error type #1138

Closed kamikazechaser closed 3 weeks ago

kamikazechaser commented 2 months ago

Is your feature request related to a problem? Please describe.

Feature request.

Describe the solution you'd like

Standard library exposes http.ErrMissingFile the same should be exposed by protocol. I can send a PR if this is within scope.

Describe alternatives you've considered

N/A

Additional context

This allows easy building of error handlers without performing string comparison/using errors.Is e.t.c.

li-jin-gou commented 2 months ago

Can you submit a PR? @kamikazechaser ❤️