-
Notifications
You must be signed in to change notification settings - Fork 177
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
Change status code of response #317
Comments
If you get the $response = $event->getResponse();
$response->setStatusCode(Response::HTTP_CREATED);
$event->setResponse($response); |
Well, i thought about that, but those two methods doesn't exist in |
I see. There's no simple way to do it 😏 |
@nicolaspetitjean Can you tell me what kind of uploader you're using? This is indeed not easily solvable, as the development of the |
@sheeep i'm using dropzone. I think |
Looks like i'm not the only one who have such ideas #71 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hello
I look for for a way to change status code of response. I'm using an event listener which have to return an
EmptyResponse
, but not way to change the status code (in my case, i'd like to return 201 instead of 200, because i create a new entity after the upload.Regards !
The text was updated successfully, but these errors were encountered: