Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Currently we have to type response codes manually such as 200, 403, e.t.c as part of response closure. Though it is not that hard to remember most commonly used response codes, its not easy to remember the meaning of each response code.
It would be much more helpful for developers if there is a provision for uses to use methods like
This can function similar to existing API of
This makes the API less error prone & more readable