OpenAPI Response Get 404 Status Code Error (Edit)

GET responses should have a 404 not found HTTP status code, communicating that nothing was found to consumers

OpenAPIResponsesGET4xxDefault

Rule Definition

openapi-response-get-404-status-code-error.yaml
{"openapi-response-get-404-status-code-error":{"description":"GET responses should have a 404 not found HTTP status code, communicating that nothing was found to consumers","message":"GET Responses MUST Have 404 Status Code","severity":"error","given":"$.paths.*.get[?(@.properties)]","then":{"field":"404","function":"truthy"}}}

Back to All of the Rules