fix(smalltrip,exception): make MethodNotAllowed error more clear about allowed methods

This commit is contained in:
Guz
2025-03-11 19:28:25 -03:00
parent 56e822a184
commit ceda7536f1

View File

@@ -203,7 +203,7 @@ func MethodNotAllowed(allowed []string, opts ...Option) Exception {
WithStatus(http.StatusMethodNotAllowed),
WithCode("Method Not Allowed"),
WithMessage("The method is not allowed for this endpoints."),
WithError(fmt.Errorf("user agent tried to use method which is not a allowed method (%s)", a)),
WithError(fmt.Errorf("user agent tried to use method which is not a allowed method (allowed: %s)", a)),
WithSeverity(WARN),
WithHeader("Allow", a),