QID 570011
QID 570011: Missing Success (2XX or 3XX) response for the Endpoint
When a request is made to the end point both success and failure scenarios should be handled. 2XX and 3XX responses indicate a success when processing the request. All end points should have either 2XX or 3XX response. The request to the end point is not resulting in any constructive task completion if 2XX or 3XX responses are not handled. All end points are analyzed to make sure they have 2XX or 3XX response defined. The end point in your swagger file does not have a success response.
No constructive task can be serviced on the end point if 2XX and 3XX response are not defined.
Solution
Please add at least 2XX or 3XX response to your end point. For example
paths:
/path:
get:
responses:
200:
Request completed successfully
Vendor References
CVEs related to QID 570011
Software Advisories
| Advisory ID | Software | Component | Link |
|---|