Skip to content

QoS B: Improve Error Handling Description - #145

Merged
Masa8106 merged 10 commits into
camaraproject:mainfrom
Masa8106:Masa8106-Add-ErrorDescription
Oct 16, 2026
Merged

Masa8106 merged 10 commits into
camaraproject:mainfrom
Masa8106:Masa8106-Add-ErrorDescription

Conversation

@Masa8106

Copy link
Copy Markdown
Contributor

What type of PR is this?

  • documentation

What this PR does / why we need it:

To clarify the conditions that might lead to the some error codes being returned by the API.

Which issue(s) this PR fixes:

Fixes #125

Special notes for reviewers:

None

Changelog input

 release-note
  -Improve Error Handling Description

Additional documentation

None

@Masa8106
Masa8106 requested a review from jlurien as a code owner September 17, 2026 13:55
@Masa8106 Masa8106 changed the title Improve Error Handling Description QoS B: Improve Error Handling Description Sep 17, 2026

- If the subject can be identified from the access token and the optional `device` object is also included in the request, then the server will return an error with the `422 UNNECESSARY_IDENTIFIER` error code. This will be the case even if the same device is identified by these two methods, as the server is unable to make this comparison.

- If a request value is outside the valid range supported by the operator, typical examples include a start time or ports, then the server will return an error with the `400 OUT_OF_RANGE` error code.

@jlurien jlurien Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These bullets are within the <!-- CAMARA:MANDATORY:identifying-device-from-access-token:BEGIN --> to <!-- CAMARA:MANDATORY:identifying-device-from-access-token:END --> block and will eventually be overwritten by the RM process, you should move them outside the block

@hdamker hdamker Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They actually must be outside the block as otherwise the validation will warn about the drift (P-027). The block must be a 1:1 copy of the Commonalities template. Between line 65 and 69 would be ok.

But I would anyway put this kind of information rather into the description of the error response example and/or near to operation which will raise this error ... here it is somehow without context.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your comments. I see your point. Since I couldn't find a suitable place to add this information near each error response, I tried to add it to the “Additional CAMARA error responses” paragraph.


- A QoS booking is a reservation for an App-flow between a specific device and a specific application server, a specific time window and, where relevant, a specific service area. An App-flow is expected to have at most one active booking at a time. If the client attempts to create a duplicate or overlapping booking for the same flow, then the server will return a `409 ALREADY_EXISTS` error code.

- If the requested area is syntactically valid but cannot be accepted for QoS booking by the operator, for example because it is outside the supported coverage, then the server will return an error with `422 QOS_BOOKING.INVALID_AREA` error code.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have curently 3 errors for areas:

  • QOS_BOOKING.NOT_MANAGED_AREA_TYPE -> If the area type is not supported
  • QOS_BOOKING.AREA_NOT_COVERED -> The service cannot be provided in the requested area
  • QOS_BOOKING.INVALID_AREA -> Syntactically correct but cannot be accepted, for example because the requested area is too small to be supported by the system.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added text for missing area errors.

Comment thread code/API_definitions/qos-booking.yaml Outdated
@jlurien

jlurien commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

@Masa8106 please let me know when I can re-review again, thanks

@Masa8106

Copy link
Copy Markdown
Contributor Author

@jlurien, I will check the comments this afternoon. Thank you for reminding me.

@Masa8106

Copy link
Copy Markdown
Contributor Author

@jlurien, would you review this PR again? Thank you.

@Masa8106
Masa8106 merged commit bcfdf56 into camaraproject:main Oct 16, 2026
2 checks passed
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

Successfully merging this pull request may close these issues.

[QoS Booking] Improve documentation of errors that may arise during creation of a booking

3 participants