ngoworldcommunity / NGOWorld-Backend

This is the official repository for Milan's server side codes.
https://api.milanhub.org
MIT License
7 stars 26 forks source link

🐞Bug: Using the `STATUS` utils instead of direct numbers #47

Closed tamalCodes closed 10 months ago

tamalCodes commented 1 year ago

Description

Currently, we have Status codes and Status messages that are configured for each of those codes that are being used. The goal is to replace any codes we find, with these , like 200 might be replaced with STATUSCODE.OK and then the message for some cases saying "Internal server error" might be replaced with STATUSMESSAGE.INTERNAL_SERVER_ERROR and so on.

Please ensure that this is done for all the codes in the project.

Screenshots

image

Browser 🥦

Google Chrome

Checklist ✅

github-actions[bot] commented 1 year ago

Hello @tamalCodes, thank you for raising the issue.

Currently, the issue is marked as https://github.com/MilanCommunity/Milan-Backend/labels/%F0%9F%9F%A3%20status%3A%20todo so please wait until the maintainers/owner review it and provide you with feedback/suggestions to proceed further.

Feel free to reach out to Tamal on Twitter, or drop a mail at tamalcodes@gmail.com if you think that this issue is of critical priority.

Give us a ⭐ to show some support Happy OpenSource 🚀

MahendraDani commented 1 year ago

@tamalCodes I would like to work on this issue.

tamalCodes commented 1 year ago

Please go ahead. There might be conflicts in the process.

Ajen07 commented 10 months ago

@tamalCodes is this issue open to contribute ?