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

fix(#978): Allow custom http status codes #981

Conversation

Tom-29
Copy link
Contributor

@Tom-29 Tom-29 commented Sep 12, 2023

This pull request will fix Issue 978. There are a few breaking changes because HttpMessage uses now HttpStatusCode instead of the HttpStatus enum. I also removed the HttpMessage.statusCode(Integer) and the HttpMessage.status(HttpStatus) method because they are no longer necessary. HttpMessage.getStatusCode() returns now a HttpStatusCode instead of a HttpStatus.

Copy link
Collaborator

@bbortt bbortt left a comment

Choose a reason for hiding this comment

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

just some minor adjustments I would take to your formatting of the if-clauses.

@Tom-29 Tom-29 requested a review from bbortt September 15, 2023 05:42
@bbortt bbortt force-pushed the feat/make-inbound-message-generation-more-robust branch from 93a3f74 to 8ea65e2 Compare September 15, 2023 08:45
@bbortt
Copy link
Collaborator

bbortt commented Sep 15, 2023

@Tom-29 I've squashed your commits. whenever you apply a suggestion directly in GitHub, you're creating new commits.

@bbortt bbortt merged commit a9026ea into citrusframework:main Sep 15, 2023
1 check passed
@bbortt bbortt deleted the feat/make-inbound-message-generation-more-robust branch September 19, 2023 13:41
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.

HttpMessageConverter fails on Custom HttpStatusCodes
2 participants