-
Notifications
You must be signed in to change notification settings - Fork 6
New error code when network in wrong state #81
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
base: main
Are you sure you want to change the base?
New error code when network in wrong state #81
Conversation
tlohmar
left a comment
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.
Looks good. I created an according PR in commonalities, adding WRONG_STATE there.
|
Until there is a definition within Commonalities the following note would apply to the additional "409 WRONG_STATE":
But it might be safe to assume that this code has traversal scope, if "state" is considered generic. @tlohmar I don't see a reference to the Commonalities issue here, could you add this? |
There is Commonalities PR#550 proposing WRONG_STATE as new error code and a Commonalities PR#541 on this NOTE 2. |
|
I have updated the PR description by adding the reference to the Commonalities PR and explanation of the chosen template extension format. |
|
Aligned this PR with the Commonalities PR https://github.com/camaraproject/Commonalities/pull/550 which has been finalised. |
What type of PR is this?
Add one of the following kinds:
What this PR does / why we need it:
This proposal adds a new error code INCOMPATIBLE_STATE to 409 generic response to indicate that a dedicated network is in an incompatible state (e.g. TERMINATED) when a new device access to that network is requested. It provides clear information to the client about the reason why its request cannot be fulfilled.
The proposed code is assumed to have traversal scope because "state" is considered generic. Therefore the template extension format {{SPECIFIC_CODE}} and not {{API_NAME}}.{{SPECIFIC_CODE}} is used. The corresponding PR has been raised in Commonalities: https://github.com/camaraproject/Commonalities/pull/550 .
The proposed change is now aligned with the above PR accepted in Commonalities where INCOMPATIBLE_STATE replaced the original proposal of INCOMPATIBLE_STATE.
Which issue(s) this PR fixes:
Fixes #46
Special notes for reviewers:
Changelog input
Additional documentation
This section can be blank.