LongRunningResponseStatusCode
June 6, 2023 ยท View on GitHub
Category
SDK Error
Applies to
Data plane OpenAPI(swagger) specs
Output Message
A '{0}' operation '{1}' with x-ms-long-running-operation extension must have a valid terminal success status code {2}.
Description
For Data plane spec, the allowed response status codes for a long DELETE operation are "200","202", & "204"; the allowed response status codes for a POST operation are "200", "201" ,"202", & "204"; the allowed response status codes for a PUT/PATCH operation are "200","201", & "202".
Why the rule is important
This will ensure that the DELETE/POST/PUT operations are designed correctly.Please refer here for further details.
How to fix the violation
Ensure that the DELETE/POST/PUT operations have the allowed response codes.