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

Modifying HTTP Status Code #1387

Open
sachinjain024 opened this issue Feb 5, 2024 · 1 comment
Open

Modifying HTTP Status Code #1387

sachinjain024 opened this issue Feb 5, 2024 · 1 comment

Comments

@sachinjain024
Copy link
Contributor

sachinjain024 commented Feb 5, 2024

A user is using Mac Desktop App on voot.com and wants to set 404 to an API for the URL - https://apis-jiovoot.voot.com/userjv/jv/v1/getmaskcohort but it is not working.

[
  {
    "createdBy": "X7NQFl65YNWjxc9q7kF1jj12toI2",
    "creationDate": 1703672390816,
    "currentOwner": "X7NQFl65YNWjxc9q7kF1jj12toI2",
    "description": "",
    "groupId": "",
    "id": "Response_ea6pn",
    "isSample": false,
    "lastModifiedBy": "X7NQFl65YNWjxc9q7kF1jj12toI2",
    "modificationDate": 1707135876066,
    "name": "response-1703672390820",
    "objectType": "rule",
    "pairs": [
      {
        "id": "ybdp1",
        "response": {
          "resourceType": "restApi",
          "statusCode": "404",
          "statusText": "Not Found",
          "type": "static",
          "value": "{}"
        },
        "source": {
          "key": "Url",
          "operator": "Equals",
          "value": "https://apis-jiovoot.voot.com/userjv/jv/v1/getmaskcohort",
          "filters": [
            {
              "requestMethod": [
                "GET"
              ]
            }
          ]
        }
      }
    ],
    "ruleType": "Response",
    "status": "Active"
  }
]
@sachinjain024
Copy link
Contributor Author

Hey Akshay,

I tried to reproduce the issue, but it looks fine at my end.

image

image

@wrongsahil wrongsahil added the issue Distinguish between PR and Issue label Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants