fix: correct success status codes on Management Interface endpoints - #196
fix: correct success status codes on Management Interface endpoints#196matlec wants to merge 2 commits into
Conversation
This resolves #195. Signed-off-by: Matthias Lechner <matlec.public@gmail.com>
|
❌ @matlec the
📝 What should I do to fix it?All proposed commits should include a sign-off in their messages, ideally at the end. ❔ Why it is requiredThe Developer Certificate of Origin (DCO) is a lightweight way for contributors to certify that they wrote or otherwise have the right to submit the code they are contributing to the project. Here is the full text of the DCO, reformatted for readability:
Contributors sign-off that they adhere to these requirements by adding a Git even has a |
Signed-off-by: Matthias Lechner <matlec.public@gmail.com>
df13590 to
ac909c9
Compare
Description
This is a spec hygiene fix.
The Device Capabilities endpoint documented
201 OKfor every successful write. That reason phrase does not exist (201isCreated,200isOK), and a single201was used for both creating and updating a document. Per RFC 9110,201 Createdis correct only when a new resource is created. An update should return200 OK. This meant a client updating an device that was already registered received201, reporting a creation that never happened.This PR aligns the Management Interface endpoints on a single convention:
201 Createdon creation,200 OKon update,204 No Contenton delete.Issues Addressed
#195
Change Type
Please select the relevant options:
Checklist