Pass the HTTP status code directly in the constructor

My IDE is telling me this way of doing things doesn't not work
```
return new JSONResponse()->setStatus(Http::STATUS_NOT_FOUND);
```
Merge pull request #709 from oparoz/stable7

Pass the HTTP status code directly in the constructor