Search code examples
kubernetesaudit

K8S audit logs- where can i find status code options


in K8S audit logs we get the responseStatus with different "code" number. where can i find all the options that can be return by K8S?

        "responseStatus": {
            "metadata": {},
            "status": "Failure",
            "reason": "Invalid",
            "code": 422
        },

Solution

  • They are basically HTTP status. In this case it is HTTP 422.