-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🤗 [Question]: how to Get status code in middleware #2928
Comments
Thanks for opening your first issue here! 🎉 Be sure to follow the issue template! If you need help or want to chat with us, join us on Discord https://gofiber.io/discord |
For that you should use logger middleware it will do that for you Logger |
not found is a bit special because it is set outside the flow but you can also set it yourself as described here |
i want handling responses according to status codes . so i need status codes in middleware |
as already mentioned, it should work with the variant as you have currently done it |
Question Description
same Get status code middleware
status code is always 200
Solution does not work
Code Snippet (optional)
Checklist:
The text was updated successfully, but these errors were encountered: