diff --git a/developer_manual/app/controllers.rst b/developer_manual/app/controllers.rst index 2d20ab0d5..6270194b4 100644 --- a/developer_manual/app/controllers.rst +++ b/developer_manual/app/controllers.rst @@ -504,7 +504,7 @@ Each response subclass has access to the **setStatus** method which lets you set // try to get author with $id } catch (NotFoundException $ex) { - return new JSONResponse()->setStatus(Http::STATUS_NOT_FOUND); + return new JSONResponse(array(), Http::STATUS_NOT_FOUND); } }