-
Notifications
You must be signed in to change notification settings - Fork 184
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
add missing response body to blocked requests #6277
Conversation
I don't think we want to have request denied at top level. This makes it hard to have a generic error handler. Otherwise I like it |
@michaelstingl This is a proposal to have a unified response body for all requests which are blocked by the policy engine to enable all clients to distinguish them. In a second step and in the scope of a cross platform initiative we should introduce server translated error messages. |
use |
I wouldn't nest it personally, because the http status code indicates the error already, but that's just personal preference. Error as top level is fine for me as well. |
It is the same like libregraph. So keeping |
💪 That's fine, maybe it's pretty neat to have it. Because in the future we might have error and errors and trough that we could have implementations for different interfaces. Anyways: I would start the message with capital letter. In the end this is what the user reads (en). (The operation ...) |
Ok. Maybe a misunderstanding on my side. I thought we agree on a fixed string for now which will be translated in web. |
Sure sure sure. But let's start this thing off properly and give it a handy message from the beginning, so that an English user gets a neat message. We will translate it in web but when we change that in the future, you don't need to replace the English strings later ;) |
💥 Acceptance test localApiTests-apiGraph-ocis failed. Further test are cancelled... |
💥 Acceptance test localApiTests-apiCors-ocis failed. Further test are cancelled... |
Kudos, SonarCloud Quality Gate passed! |
add missing response body to blocked requests
Description
Adds the missing response body to blocked requests.
Examples
Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: