Details
-
Suggestion
-
Status: New
-
Resolution: Unresolved
-
None
-
None
-
None
Description
Currently, Xray REST APIs are showing correct error text, however, some response Status needs to be changed.
Steps to reproduce:
- Take an Xray project in which the user does not have permissions to create issues
- Import Cucumber feature files into the project using REST API.
curl -H "Content-Type: multipart/form-data" -X POST -H "Authorization: Bearer $token" -F "file=@1.feature" https://xray.cloud.getxray.app/api/v1/import/feature?projectKey=DEMO
- Check for the Status response of the REST API
It is expected that the status code should be 403(forbidden error) due to insufficient permissions, however, we get 400 error code.Â