-
Notifications
You must be signed in to change notification settings - Fork 40k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Write the json content type for API responses #607
Write the json content type for API responses #607
Conversation
@@ -62,6 +62,21 @@ func NewNotFoundErr(kind, name string) error { | |||
return errNotFound(fmt.Sprintf("%s %q not found", kind, name)) | |||
} | |||
|
|||
type errAlreadyExists string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two thoughts--
Does this type belong in this PR?
If yes, can you generalize this type with the errNotFound type instead of making them distinct types? (e.g., have an httpResponseCode which is 404 for MakeNotFound and 409 (?) for MakeAlreadyExists...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It does not - my bad.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will do the generalization with another issue - that's coming from some other prototyping I was doing and mixed my commits.
Write the json content type for API responses
Thanks! |
Fix nginx buffering bug
Fix nginx buffering bug
add google analytics to kubectl book
Create cloudbuild file
Closes #604