Replies: 1 comment
-
If you're using a custom state processor in Laravel, simply return a Symfony\Component\HttpFoundation\Response or a Laravel Illuminate\Http\Response instance manually with the desired status code. If you return a raw Response, API Platform will not try to serialize again. Here is example code that might help you
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to configure a different response code for a POST operation.
I couldn't find anything in the documentation about this related to Laravel in the State Processors section, since apparently, the integration with Controllers is only available for Symfony
Beta Was this translation helpful? Give feedback.
All reactions