Skip to content

[Meta] Middlewares have different HTTP response codes for auth errors #17

@jamietanna

Description

@jamietanna

Looks like this should be aligned everywhere.

case *openapi3filter.SecurityRequirementsError:
return http.StatusUnauthorized, err

https://github.com/oapi-codegen/echo-middleware/blob/bd401ffc8b5c352e067dc6a2bf2a47fcb6b4e2d2/oapi_validate.go#L174

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions