isBirthdayRequired()) { return $rpcRequest->produceError(StandardError::FORBIDDEN, 'A birthday is required for this server'); } try { RegisteredPeerManager::deleteBirthday($request->getPeer()); } catch(Exception $e) { throw new StandardException('Failed to delete birthday ' . $e->getMessage(), StandardError::INTERNAL_SERVER_ERROR, $e); } return $rpcRequest->produceResponse(true); } }