Skip to content

Add withStatus() and withHeaders() to SuccessResponse#37

Merged
brunogaspar merged 1 commit into
mainfrom
add-with-status
May 22, 2026
Merged

Add withStatus() and withHeaders() to SuccessResponse#37
brunogaspar merged 1 commit into
mainfrom
add-with-status

Conversation

@brunogaspar
Copy link
Copy Markdown
Member

@brunogaspar brunogaspar commented May 22, 2026

Allows setting custom HTTP status codes and headers while keeping the Responsable return type, instead of having to call respond() which returns JsonResponse directly.


View with Codesmith Autofix with Codesmith
Need help on this PR? Tag @codesmith with what you need. Autofix is disabled.

Allows setting custom HTTP status codes and headers while keeping the `Responsable` return type, instead of having to call `respond()` which returns `JsonResponse` directly.

Signed-off-by: Bruno Gaspar <brunofgaspar1@gmail.com>
@brunogaspar brunogaspar self-assigned this May 22, 2026
@brunogaspar brunogaspar added the changelog:added New feature or addition label May 22, 2026
@brunogaspar brunogaspar merged commit 6615753 into main May 22, 2026
4 checks passed
@brunogaspar brunogaspar deleted the add-with-status branch May 22, 2026 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog:added New feature or addition

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant