Skip to content

Add json_failed_resp_with_message_minimal method #2

Open
@rousan

Description

@rousan

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"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions