withStatus(405); $response->getBody()->write('Method Not Allowed'); return $response; } }