public function accepted($location = null, $content = null) { $response = new Response($content); $response->setStatusCode(202); if (!is_null($location)) { $response->header('Location', $location); } return $response; }