mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
Add missed status code description in comment.
This commit is contained in:
parent
46e58df837
commit
e01886b100
@ -767,11 +767,13 @@ const (
|
|||||||
// doesn't make any sense, for example deleting a read-only object. This is different than
|
// doesn't make any sense, for example deleting a read-only object. This is different than
|
||||||
// StatusReasonInvalid above which indicates that the API call could possibly succeed, but the
|
// StatusReasonInvalid above which indicates that the API call could possibly succeed, but the
|
||||||
// data was invalid. API calls that return BadRequest can never succeed.
|
// data was invalid. API calls that return BadRequest can never succeed.
|
||||||
|
// Status code 400
|
||||||
StatusReasonBadRequest StatusReason = "BadRequest"
|
StatusReasonBadRequest StatusReason = "BadRequest"
|
||||||
|
|
||||||
// StatusReasonMethodNotAllowed means that the action the client attempted to perform on the
|
// StatusReasonMethodNotAllowed means that the action the client attempted to perform on the
|
||||||
// resource was not supported by the code - for instance, attempting to delete a resource that
|
// resource was not supported by the code - for instance, attempting to delete a resource that
|
||||||
// can only be created. API calls that return MethodNotAllowed can never succeed.
|
// can only be created. API calls that return MethodNotAllowed can never succeed.
|
||||||
|
// Status code 405
|
||||||
StatusReasonMethodNotAllowed StatusReason = "MethodNotAllowed"
|
StatusReasonMethodNotAllowed StatusReason = "MethodNotAllowed"
|
||||||
|
|
||||||
// StatusReasonNotAcceptable means that the accept types indicated by the client were not acceptable
|
// StatusReasonNotAcceptable means that the accept types indicated by the client were not acceptable
|
||||||
|
Loading…
Reference in New Issue
Block a user