• Clayton Coleman's avatar
    Turn 409 into 500 Try Again Later when using generateName · 1588970e
    Clayton Coleman authored
    If a client says they want the name to be generated, a 409 is
    not appropriate (since they didn't specify a name). Instead, we
    should return the next most appropriate error, which is a 5xx
    error indicating the request failed but the client *should* try
    again.  Since there is no 5xx error that exactly fits this purpose,
    use 500 with StatusReasonTryAgainLater set.
    
    This commit does not implement client retry on TryAgainLater, but
    clients should retry up to a certain number of times.
    1588970e
Name
Last commit
Last update
..
etcd Loading commit data...
doc.go Loading commit data...
errors.go Loading commit data...
errors_test.go Loading commit data...
validation.go Loading commit data...
validation_test.go Loading commit data...