Skip to content
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

What happens when a client tries to create a topic that already exists? #24

Open
mjkoster opened this issue Mar 19, 2018 · 4 comments
Open

Comments

@mjkoster
Copy link
Contributor

Should we return 4.09 Conflict for the case when the client tries to create a topic that already exists?

Indicates that the request could not be processed because of conflict in the request, such as an edit conflict between multiple simultaneous updates.

The draft currently specifies 4.03

The request was valid, but the server is refusing action. The user might not have the necessary permissions for a resource, or may need an account of some sort.

@akeranen
Copy link
Contributor

LGTM

@mjkoster
Copy link
Contributor Author

Will change to 4.09

@akeranen
Copy link
Contributor

4.03 is same as HTTP 403 per 7252:

The HTTP 403 Forbidden client error status response code indicates that the server understood the request but refuses to authorize it.

4.09 is registered by 8132: https://tools.ietf.org/html/rfc8132#section-6
https://tools.ietf.org/html/rfc8132#section-3.4

Conflicting state: If the modification specified by a PATCH or
iPATCH request causes the resource to enter an inconsistent state
that the server cannot resolve, the server can return the 4.09
(Conflict) CoAP response.

@jaimejim
Copy link
Member

jaimejim commented Oct 2, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants