OpenAPI Response Get 401 Status Code Error (Edit)

GET responses should have a 401 unauthorized HTTP status code, communicating that consumers do not have access

OpenAPIResponsesGET4xx

Rule Definition

openapi-response-get-401-status-code-error.yaml
{"openapi-response-get-401-status-code-error":{"description":"GET responses should have a 401 unauthorized HTTP status code, communicating that consumers do not have access","message":"GET Responses Has 401 Status Code","severity":"error","given":"$.paths.*.get.responses","then":{"field":"401","function":"truthy"}}}

Back to All of the Rules