First of all, great framework!
I'm struggling with this for a while. No matter what I do, it always returns status 200.
This is my code:
return $response->withJson($check, 500);
Also tried it like this:
$newResponse = $response->withStatus(400)->write('Bad Request');
Status 200 is always returned. I'm running it locally (osx, wamp, apache), don't know if that's an issue.
Thanks in advance and keep up the great work.