Skip to content
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

New REST API error handler method - MissingRequestHeaderException #161

Open
IgorBalog-Eng opened this issue Feb 22, 2023 · 0 comments
Open

Comments

@IgorBalog-Eng
Copy link
Collaborator

When invoking REST API (offeredResource, and probably others) if required header is not sent, it will throw error and in RESTExceptionHandler class, this will be handled by handleGeneralException, which will result in HTTP status 500.
It should be HTTP status - 400 - bad request.

org.springframework.web.bind.MissingRequestHeaderException: Missing request header 'resource' for method parameter of type URI

When new handler is implemented, update also documentation where we describe behavior of those interfaces.

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

No branches or pull requests

1 participant