Skip to content
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

Add json_failed_resp_with_message_minimal method #2

Open
rousan opened this issue Aug 17, 2020 · 0 comments
Open

Add json_failed_resp_with_message_minimal method #2

rousan opened this issue Aug 17, 2020 · 0 comments

Comments

@rousan
Copy link
Member

rousan commented Aug 17, 2020

Now the json_failed_resp_with_message method prepends the status code message(Bad Request: ) before the actual message like below:

{
  "status": "failed",
  "code": 400,
  "message": "Bad Request: Username should only contain lowercase alpha-numeric characters"
}

But, it should provide a method not to prepend Bad Request: text e.g. method json_failed_resp_with_message_minimal as below:

{
  "status": "failed",
  "code": 400,
  "message": "Username should only contain lowercase alpha-numeric characters"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant