Skip to content

Now can override default status code with @Produces #150

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

Merged
merged 4 commits into from
Jan 31, 2023

Conversation

SentryMan
Copy link
Collaborator

@SentryMan SentryMan commented Jan 29, 2023

While yes, we currently can add the Javalin/Helidon Context/ServerResponse to our controller method and modify it programmatically, having an annotation modify the defaults seems easier.

  • adds status code method to Produces
  • updates method reader to get status code from Produces

@SentryMan SentryMan changed the title Now can define default status code with @Produces Now can override default status code with @Produces Jan 29, 2023
@rbygrave rbygrave added this to the 1.24 milestone Jan 30, 2023
@rbygrave rbygrave merged commit 3fecb6c into avaje:master Jan 31, 2023
@SentryMan SentryMan deleted the status branch January 31, 2023 21:29
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.

2 participants