OpenAPI Response Get 403 Status Code Error (Edit)

GET responses should have a 403 forbidden HTTP status code, communicating that consumers are not allowed to access

OpenAPIResponsesGET4xx

Rule Definition

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

Back to All of the Rules