microsoft / microsoft/kiota-ruby
generation - Ruby - Add ResponseStatusCode to API error/exception
Open
Nobody has claimed this yet.
enhancement
ruby
- Dominant language
- Ruby
- Stars
- 5
- Forks
- 8
- Avg merge
- 11h 9m
- Merged PRs (30d)
- 24
Description
related to microsoft/kiota#2216
To improve the error handling experience we need to add the status code the the main api error type:
- add a ResponseStatusCode field to the api exception class
- add corresponding accessors (if needed)
- populate the information in the request adapter when an error is encountered
Examples
https://github.com/microsoft/kiota-abstractions-dotnet/pull/68
https://github.com/microsoft/kiota-http-dotnet/pull/82
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the API exception class and the request adapter in the Ruby repository, then review the related Kiota .NET pull requests for intended behavior. Done means the exception exposes a ResponseStatusCode and the request adapter populates it when an error is encountered.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- api, backend-api-design
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100