OpenAPI Response Post 401 Status Code Error (Edit)

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

OpenAPIResponsesPOST4xx

Rule Definition

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

Back to All of the Rules