oapi-codegen
oapi-codegen copied to clipboard
feat: allow `StatusCode()` for `error`s returned in Strict Server
To allow controlling what actually gets returned
May be trivial to do it yourself with the provided error handler
Returning an echo.ErrFoo as the error should properly be unwrapped and the correct response code returned.
Not sure if this is the ideal implementation tho as it leaks using echo into the strict implementation. Also not sure if that is worse that duplicating the already-existing error response codes.