Change error code from 500 to 501 in case plugin is not available in users license#13344
Merged
sannya-singal merged 2 commits intomainfrom Nov 17, 2025
Merged
Change error code from 500 to 501 in case plugin is not available in users license#13344sannya-singal merged 2 commits intomainfrom
sannya-singal merged 2 commits intomainfrom
Conversation
Test Results - Preflight, Unit22 309 tests +31 20 555 ✅ +29 6m 20s ⏱️ - 9m 4s Results for commit 27d94db. ± Comparison against base commit 3262ccd. This pull request removes 13 and adds 44 tests. Note that renamed tests count towards both.♻️ This comment has been updated with latest results. |
Test Results (amd64) - Integration, Bootstrap 5 files ± 0 5 suites ±0 2h 40m 38s ⏱️ + 1m 18s Results for commit 27d94db. ± Comparison against base commit 3262ccd. ♻️ This comment has been updated with latest results. |
k-a-il
reviewed
Nov 6, 2025
k-a-il
reviewed
Nov 11, 2025
k-a-il
reviewed
Nov 11, 2025
k-a-il
requested changes
Nov 11, 2025
Contributor
k-a-il
left a comment
There was a problem hiding this comment.
Thanks for addressing this issue 🚀
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Change error code from 500 to 501 in case the plugin is not part of the active license agreement and modify the error message to plugin details.
Eg:
localstack.aws.api.core.CommonServiceException: exception while calling cloudtrail.CreateTrail: plugin localstack.aws.provider:cloudtrail:pro is disabled, reason: This feature is not part of the active license agreementshould return 501.Changes
Set status code to
501if when creating the error response in the handler and error message removes plugin details.Tests
This was tested by manually intervening the license activation process in the core repo by not updating, validating and saving the license file.
Related
Fixes FLC-97